<c:forEach items="${listOne}" var="item" varStatus="loop">
<tr>
<td>${item.id}</td>
<td>${item.name}</td>
<td>${item.age}</td>
<td>${listTwo[loop.count-1].property}</td>
</tr>
</c:forEach>java
Name of the exported scoped variable for the status of the iteration. Object exported is of
type javax.servlet.jsp.jstl.core.LoopTagStatus. This scoped variable has nested visibility.
jsp
index 当前此次迭代从 0 开始的迭代索引oop
count 当前此次迭代从 1 开始的迭代计数spa
关于varStatus的详细解读:http://luoke920.iteye.com/blog/258815blog