8
목록의 제품을 foreach
의 3 열로 표시해야합니다.JSTL foreach : 다음 객체 얻기
<table>
<c:forEach items="${lstProduct}" var="product" varStatus="status" step="3">
<tr>
<td>
<!--product of column left will be display here -->
${product.id}
${product.name}
</td>
<td>
<!--product of column middle will be display here -->
<!--I need something like this: productMiddle = product.getNext() -->
</td>
<td>
<!--product of column right will be display here -->
<!-- productRight = productMiddle.getNext() -->
</td>
</tr>
</c:forEach>
</table>
문제는 어떻게 목록에 다음 제품을받을 수 있나요한다 : 여기
내 코드?
감사합니다. 완전한. – Mohit