我需要在JSP中创建一个表,一个头,然后单元格根据索引的输入形式。所以它会如下所示。每个新行都是从一个循环计算出来的,其中来自用户的输入的限制是它将下降的行数。在JSP中迭代指定次数
<column1header><column2header>
<1> <1 computed>
<2> <2 computed>
<...> <............>
<limit> <limit computed>
我需要在JSP中创建一个表,一个头,然后单元格根据索引的输入形式。所以它会如下所示。每个新行都是从一个循环计算出来的,其中来自用户的输入的限制是它将下降的行数。在JSP中迭代指定次数
<column1header><column2header>
<1> <1 computed>
<2> <2 computed>
<...> <............>
<limit> <limit computed>
你可以这样说:
<table>
<!-- here should go some titles... -->
<tr>
<th>column1header</th>
<th>column2header</th>
</tr>
<c:forEach var="i" begin="0" end="${user.limit}">
<tr>
<td>${i}</td>
<td>${i} computed</td>
</tr>
</c:forEach>
</table>
请参考以下链接:
How to create table dynamically using count and JSTL ForEach
你的问题是什么?你的输出现在的行为如何? – wawek
所以你应该寻找能够解决这个异常的线程。也许这一个会帮助你http://stackoverflow.com/questions/4928271/how-to-install-jstl-the-absolute-uri-http-java-sun-com-jstl-core-cannot-be-r – wawek