I hate using scriptlets, but had to do so in the end for the problem - although could have made a custom tag I guess. Here's what I do: <TABLE BORDER="0" CELLPADDING="8" CELLSPACING="8"> <TR> <logic:iterate id="category" name="mfdCategoriesForm" property="categories" indexId="index"> <TD> <bean:write name='category' property='name'/> </TD> <% //insert rows where necessary int categoriesInRow = 3; if ((index.intValue() > 0 && ((index.intValue()+1) % categoriesInRow == 0))) { %> </TR> <TR> <% } %> </logic:iterate> </TR> </html:form> </TABLE> HTH, cheers, Dave "struts (H2Opilot)" <[EMAIL PROTECTED]> on 06/06/2002 10:40:07 AM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]>; Please respond to [EMAIL PROTECTED] To: "Struts Users Mailing List" <[EMAIL PROTECTED]> cc: (bcc: David Hay/Lex/Lexmark) Subject: Problem with Logic-iterate and enumeration hi, I have a List of Numbers and I like to use 3 columns and n rows. Is there a possible way to realise this via Logic-iteration. Normally, it look like that every next step in the iteration there is always another row. Like this: <table width="100%" border="0" cellspacing="1" cellpadding="1"> <logic:iterate id="element" name="bla_f" property="numberss" type="app.Data"> <tr bordercolor="#333366"> <td> <bean:write name="element" property="number"/> </td> <td> ****** this should be the next element of Data, but how increment the element?? ***** <bean:write name="element" property="number"/> </td> </tr> </logic:iterate> </table> any ideas? -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>