- body style="margin:0px">
- <table width="100%" border="0">
- <tr>
- <div id="xlxka">
- <table bgcolor="red" width="100%">
- <bean:size name="list_zdy" id="count"/>
- <c:forEach var="one" items="${list_zdy}" varStatus="cou">
- <!-- begin -->
- <c:if test="${cou.count eq 1 || (cou.count-1) % 3 eq 0}">
- <tr>
- </c:if>
- <td>
- <table width="33%">
- <tr>
- <td width="100%" height=25>
- ${one.mc}
- </td>
- </tr>
- </table>
- </td>
- <c:if test="${cou.count % 3 eq 0 || cou.count eq 3}">
- </tr>
- </c:if>
- <!-- end -->
- </c:forEach>
- </table>
- </div>
- </tr>
- </table>
- </body>
转载注明本文地址: http://www.ablanxue.com/prone_21351_1.html
本文介绍了一个使用JSP和Java技术实现的数据列表展示案例。通过遍历数据集合并在网页上以表格形式显示每项数据的名称。文章展示了如何利用JSP内置对象和Java循环结构来组织页面布局。

4846

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



