Hi Richard For what it is worth this is how I am doing it:
My form has a Collection called products which contains product objects. A product has a name and description. The id value "product" is then used to refer to each object in the collection in a bean write statement, displaying the name and description in each column. In this case I am also writing a link with the index value of the collection. <logic:iterate id="product" name="ChannelForm" property="products"> <tr> <td align="left"> <bean:write name="product" property="name" /> </td> <td align="left"> <bean:write name="product" property="description" /> </td> <td align="center"> <html:link page="/EditChannel.do?action=editProduct" indexed="true"> <bean:message key="link.edit"/> </html:link> </td> </tr> </logic:iterate> HTH Shane -----Original Message----- From: Richard Hill [mailto:[EMAIL PROTECTED] Sent: Tuesday, 15 July 2003 11:36 a.m. To: '[EMAIL PROTECTED]' Subject: Iterating the resultset contents in the view (jsp) Hi, I'm working on an action that gets a resultset from a database table containing 4 columns. I need to pass that information back to the view (jsp) which will iterate over results. My question is what is the best way to do this. Do I create an array for each row in the resultset and insert each array in a collection, passing that back to the view? If so, how would you iterate over each array in the collection with the logic:iterate taglib? All of the examples only show iterations over single column lists. Any help would be appreciated. Thanks, Richard --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]