我是通过
<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>知道图片的路径呢,路径是通过数据库读取出来的

解决方案 »

  1.   

    直接用普通的img标签就可以了,没必要用struts的这个标签吧
    <img src='<bean:write name="get_article_car" property="road_picture"  filter="false"/>'/>
      

  2.   

    <img src="<%=request.getContextPath()%>/路径/文件夹/<bean:write name='get_article_car' property='road_picture'/>" border="0"  width="60" height="60" alt="" />
      

  3.   

    我是想使用<html:img>或<html:image>来显示图片,只是路径是从数据库取出的,大家有没有很好的解决方法呀
      

  4.   

    struts标签好象不能嵌套使用,在我所做的项目中除了一些循环、判断等逻辑及表单提交用到struts的标签外,其他的一般用普通的html标签~~仅供参考
      

  5.   

    <bean:define id="getroad_picture" name="KH010Form" property="road_picture" type="java.lang.String"/><html:img src="<%=getroad_picture%>">