日期:2014-05-16  浏览次数:20345 次

JSTL FOREACH循环每行两和三列的显示方法

1.两列的

< c:forEach var = " bean " items = " ${result} " varStatus = " status " >
< c: if test = " ${status.count%2==1} " >
< tr >
</ c: if >
< td >< b > $ {bean.id} </ b > :$ {bean.name} </ td >
< c: if test = " ${status.count%2==0} " >
</ tr >
</ c: if >
< c:set var = " v_count