I have created the following code to display some records from a database :
<table id="productTable">
<c:forEach var="product" items="${categoryProducts}" varStatus="iter">
<tr class="${((iter.index % 2) == 0) ? 'lightBlue' : 'white'}">
<td>
<img src="${initParam.productImagePath}${product.name}.png"
alt="${product.name}">
</td>
<td>
${product.name}
<br>
<span class="smallText">${product.description}</span>
</td>
<td>€ ${product.price}</td>
<td>
<form action="addToCart" method="post">
<input type="hidden"
name="productId"
value="${product.id}">
<input type="submit"
name="submit"
value="add to cart">
</form>
</td>
</tr>
</c:forEach>
</table>
Is it possible to add paging to this table, so that I can display many records in one page?
Thank you.