如何使用列表对象

时间:2010-10-22 03:11:43

标签: jsp-tags

请求中有两个列表对象。现在我想通过以下方法在jsp页面中使用它们:

<c:forEach items="${listA}" var="A">
<tr><td>${A.propA}</td><td>${listB[A.index].propB}</td>
</c:forEach>

这可能吗? 感谢

我得到了正确的方法:

<c:forEach items="${listA}" var="A" varStatus="status">
<tr><td>${A.propA}</td><td>${listB[status.index].propB}</td>
</c:forEach>

1 个答案:

答案 0 :(得分:0)

是的,试试,

${requestscope.listA}
相关问题