8
Necesito mostrar el producto en la lista en 3 columnas con foreach
.JSTL foreach: obtener el objeto siguiente
Aquí está mi código:
<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>
la pregunta es ¿Cómo consigo siguiente producto en la lista?
Thanks man. Perfecto. – Mohit