I have an arrayList which has objects of a bean within it. In the view, I am iterating and printing the list using <c:foreach> tag.
I am printing this list into a table, so I need to print 4 elements of a list at time inside of a <tr> tag. Then the next 4 elements in another <tr>, so on.
How would I do that? Is there an index to use so that I can store the value and only start from there the next time I iterate the list?
E.g. of my hypothesis:
<for i=list.length i++>
{
<tr>
<td>${ListElement}</td>
</tr>
}