首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

小弟我用ArrayList把数据库写入其中,小弟我该怎么在struts2中使用标签输出呢

2012-01-15 
我用ArrayList把数据库写入其中,我该如何在struts2中使用标签输出呢?我用ArrayList把数据库写入其中,我该

我用ArrayList把数据库写入其中,我该如何在struts2中使用标签输出呢?
我用ArrayList把数据库写入其中,我该如何在struts2中使用标签输出呢?

Collection<get_line> ret=new ArrayList<get_line>();
……
ret.add(db); 
……
request.setAttribute("line_hot",ret);

我该如何在struts2中使用标签循环输出呢?

在struts1中我知道标签循环输出,但struts2如何用呢

[解决办法]
http://hi.baidu.com/joe95/blog/item/8e70c7a27a2e83a9caefd0c2.html

楼主 参考一下吧

[解决办法]
<logic:iterate id="line" name="line_hot" type="">
<bean:write name="line" property=""/>
</logic:iterate>

热点排行
Bad Request.