<table width="99%" border="0" cellspacing="0" cellpadding="0">
<c:forEach var="item" items="${persons}" varStatus="s">
<c:if test="${s.count % 5 == 0}"><tr></c:if><!-- 输出4列 -->
<td>
<input type="checkbox" name='orderIndexs' value="${item.id }" />${item.fullName }
</td>
</c:forEach>
<tr>
<td>
<a class="button" href="javascript:test()"><span>确定</span></a>
</td>
</tr>
</table>注意:循环中的</tr>不需要写<C:forEach>表格循环
最新推荐文章于 2020-04-25 15:18:01 发布
本文介绍了一种使用JSP和EL表达式结合循环展示人员信息的方法,并通过条件判断实现每五行换行显示,最终提供了确认按钮以完成选择。
3247

被折叠的 条评论
为什么被折叠?



