Struts2 Iterator 施用

Struts2 Iterator 使用在Struts2中,遍历集合的方式通常用iterator。下面是例子:其中s:if test#status.in

Struts2 Iterator 使用
在Struts2中,遍历集合的方式通常用iterator。
下面是例子:


其中<s:if test="#status.index % 4 == 0"> 表示集合中的每4行为一个<TR>