关于分页显示图片
现在有个数据库中一个字段存储图片名称如 123.jpg
现在把图片id和图片名称寸进hashmsp中,在放到list中.然后页面读取list.
uploadfile 是图片存放路径.到底怎么样可以正确处理图片.然后在页面显示出来!
<logic:present name= "list " scope= "request ">
<logic:iterate name= "list " id= "imagelist " scope= "request ">
<tr>
<bean:write name= "imagelist " property= "filepath "/>
<td width= "43% " align= "center "> <html:img page= "/uploadfile/ <bean:write name= "imagelist " property= "filepath "/> "/>
</td>
<td width= "43% " align= "center "> <html:img page= "/uploadfile/ <bean:write name= "imagelist " property= "filepath "/> "/> </td>
</tr>
</logic:iterate>
</logic:present>
------解决方案--------------------一般是存放绝对路径,然后根据id读取路径,再显示
------解决方案--------------------你上网找一个分页的包,里面有分页的方法的