【发布时间】:2014-08-09 05:18:38
【问题描述】:
我想在 jstl 中每次迭代获得两到两个元素。我这样做有可能吗? 这是我的代码。 dataListTweets 是我在上一页设置的列表。我想从列表中每次迭代迭代两个两个元素。
<table cellpadding="2" style="margin-left: 82px;margin-top: 11px;">
<c:forEach items="${dataListTweets}" var="Tweets">
<tr>
<td width="119">${Tweets}</td>
<td width ="168">${Tweets}</td>
</tr>
</c:forEach>
<c:remove var="dataListDetails" scope="request"/>
</table>
【问题讨论】:
标签: jstl