可以把集合放到request中
action中这么写
Collection<Xxx> xxxs = this.getXxxService().findXxxs(...);
request.setAttribute("xxxs", xxxs);
页面用迭代就行了
<logic:iterate id="item" name="xxxs" scope="request" type="com....Xxx">
</logic:iterate>不用form,否则你也可以在form中声明Collection<Xxx> xxxs然后再action中给他赋值
action中这么写
Collection<Xxx> xxxs = this.getXxxService().findXxxs(...);
request.setAttribute("xxxs", xxxs);
页面用迭代就行了
<logic:iterate id="item" name="xxxs" scope="request" type="com....Xxx">
</logic:iterate>不用form,否则你也可以在form中声明Collection<Xxx> xxxs然后再action中给他赋值
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货