Adam: Learn how to use the Nested extension. If you are using Struts 1.0 you can find it at http://www.keyboardmonkey.com/next/index.jsp. It is a part of Struts 1.1.
Then, apply something like below. Create a form bean that has a collection of Day objects each of which in turn has a collection of Location objects. (FYI: With the version in Struts 1.1 and indexed properties, you may be able to avoid the <% %> ugliness) <nested:root name="myFormBean"> <table> <nested:iterate property="days"> <tr> <td> <nested:write property="dayName"/> </td> </tr> <% int colCount = 0; %> <nested:iterate property="locations"> <% if(colCount % 3 == 0) { %> <tr> <% } %> <td> <nested:write property="locationName"> </td> <% if(colCount++ % 3 == 2) { %> </tr> <% } %> </nested:iterate> </nested:iterate> </nested:root> HTH Sri -----Original Message----- From: Adam Sherman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 15, 2002 3:46 PM To: Struts Users Mailing List Subject: RE: Structure Advice for logic:iterate On 10/15/02 12:33:11 -0700, Wendy Smoak wrote: > Adam wrote: >> I need to present data like this >> Heading One >> One Two Three >> Four Five Six >> Heading Two >> Seven Eight >> Heaging Three >> Nine Ten Eleven >> Etc. > > Not enough info... are the 'one' 'two' 'three' things all of the same > type? Will there always be exactly three columns & two rows under > 'Heading One'? What do you mean 'etc.' at the end? More headings? Or > are the headings set in advance? > > Maybe if you mock up a static HTML example, it would be easier to see > what you need to do. Be sure to note what things are variable-- if > you know the columns but the number of rows may vary, etc. http://www.teachandtravel.com/site/infosessions/schedule.php?division=Canada This is the existing page, done in PHP. It's a rolling schedule, displays data from "today" until the end of the database. Thanks for the help! A. -- Adam Sherman President & Chief Technologist Tritus CG Inc. +1 (613) 797-6819 -- 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]>