日期:2014-05-18  浏览次数:20640 次

struts中html:img的数据库赋值路径的用法问题
我是通过
<logic:iterate   id= "get_article_car "   name= "get_article_car ">
从数据库中读取出图片路径 <bean:write   name= "get_article_car "   property= "road_picture "     filter= "false "/>
<html:img……>     该如何设置才能让 <html:img> 知道图片的路径呢
<logic:iterate>

<html:img……>     该如何设置才能让 <html:img> 知道图片的路径呢,路径是通过数据库读取出来的

------解决方案--------------------
<bean:define id= "getroad_picture " name= "KH010Form " property= "road_picture " type= "java.lang.String "/>

<html:img src= " <%=getroad_picture%> ">