1 2 3 4 5 6 7 8 9 10 | <c:forEach var=" name" varStatus=" name" begin=" expression" end=" expression" step=" expression"> body content </c:forEach> |
1 2 3 4 5 6 7 8 | <table> <tr><th>Value</th> <th>Square</th></tr> <c:forEach var="x" begin="0" end="10" step="2"> <tr><td><cut value="${x}"/></td> <td><cut value="${x * x}"/></td></tr> </c:forEach> </table> |
1 2 3 4 5 6 7 8 9 10 11 | <c:forEach var=" name" items=" expression" varStatus=" name" begin=" expression" end=" expression" step=" expression"> body content </c:forEach> |
1 2 3 4 5 6 7 8 9 10 | <table> <c:forEach items="${entryList}" var="blogEntry"> <tr><td align="left" class="blogTitle"> <cut value="${blogEntry.title}" escapeXml="false"/> </td></tr> <tr><td align="left" class="blogText"> <cut value="${blogEntry.text}" escapeXml="false"/> </td></tr> </c:forEach> </table> |
1 2 3 4 5 6 7 8 9 10 11 12 | <table> <c:forEach items= "${entryList}" var="blogEntry" varStatus="status"> <tr><td align="left" class="blogTitle"> <cut value="${status.count}"/>. <cut value="${blogEntry.title}" escapeXml="false"/> </td></tr> <tr><td align="left" class="blogText"> <cut value="${blogEntry.text}" escapeXml="false"/> </td></tr> </c:forEach> </table> |
1 2 3 4 5 6 7 8 9 10 11 12 13 | <c:forTokens var=" name" items=" expression" delims=" expression" varStatus=" name" begin=" expression" end=" expression" step=" expression"> body content </c:forTokens> |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |