当前位置: 代码迷 >> Java Web开发 >> struts中html:img的数据库赋值路径的用法有关问题
  详细解决方案

struts中html:img的数据库赋值路径的用法有关问题

热度:88   发布时间:2016-04-17 13:47:41.0
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%> ">

  相关解决方案