Hi there,
I have a set of results returned to my
jsp as a list of beans. Each bean contains one data field and the name of a thumbnail to find and display. The info needs to be displayed in a fixed table format, like so:
1 2 3 4 5
6 7 8 9 10
I can think of a few ways to acheieve this. For example, set an arbitary variable i to increment with each new record. When i = 6 add another <tr>.
Or, return the results as two sets of 5 and loop through the <logic:iterate> twice so I have two tables.
But both of these seem like applying sticking plasters to a problem that I should really solve! Can anyone suggest a better way of arranging these records in the above format?
Thanks, Dave
[ February 21, 2006: Message edited by: Dave Mere ]