请问一下我的读出图片那里有错啊,
<%
ArrayList list=(ArrayList)request.getSession().getAttribute("list");
if(list!=null){
for(int i=0;i<list.size();i++)
{
CarPO po=(CarPO)list.get(i);
%>
<div style="width:120px;height:200px;background-color:balck;float:left;margin:5px;">
<img style="height: 200px; width: 200px;" src="${po.foodImage}">
<%=(po.getFoodName())%>
</div>
<%}
}
%>
<%
ArrayList list=(ArrayList)request.getSession().getAttribute("list");
if(list!=null){
for(int i=0;i<list.size();i++)
{
CarPO po=(CarPO)list.get(i);
%>
<div style="width:120px;height:200px;background-color:balck;float:left;margin:5px;">
<img style="height: 200px; width: 200px;" src="${po.foodImage}">
<%=(po.getFoodName())%>
</div>
<%}
}
%>
解决方案 »
- input file 文件上传控件隐藏后用button触发它的click事件
- 请教was6.1下Unicode码没有没有显示成中文的问题
- tomcat访问问题
- IE7下,页面源码加载完毕,但是页面图片等显示不出来,大家有什么解决方法?
- sharedObject无法在服务器端生成.fso文件
- SessionID 避免公用
- 改了个jsp页面,不能提交
- WEB工程中spring配置文件路径问题。
- jsp里面的函数不能用out.print吗?
- tomcat与Oracle 搭建环境问题!
- 新安装了MyEclipes 6.0 为什么没以前好用?JSP页面不能自动调方法
- Iterator iter = coll.iterator() ;while(iter.hasNext())的另一种实现方式?
<c:forEach var="list" item="${list}">
<div style="width:120px;height:200px;background-color:balck;float:left;margin:5px;">
<img style="height: 200px; width: 200px;" src="${list.foodImage}">
</c:forEach>