Look at the nested extension @ http://www.keyboardmonkey.com/next/index.jsp.  It is 
exactly for this purpose.

It is included as part of Struts 1.1.x

Sri

> -----Original Message-----
> From: Kirby Vandivort [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, September 04, 2002 12:13 PM
> To: [EMAIL PROTECTED]
> Subject: iterate question
> 
> 
> Hello,
> 
> I'm new to struts, so please bear with me.  I'm in the early 
> stages of converting something to the struts framework and 
> I've run into a situation that I'm not sure how to handle.
> 
> I want to make a page that, as an example, looks like:
> 
>   - message 1
>   - message 2
>     * re: message 2
>       + re: re: message 2
>     * re: message 2
>     * re: message 2
>   - message 3
> 
> 
> etc.  So, I'm going to pass a collection to the jsp page, and 
> the collection might contain collections.  There can be any 
> level of nesting.  
> 
> This seems like a common case, but I haven't found a way to 
> do it using the struts tags as of yet.  It really needs some 
> sort of recursive solution since you don't know how many 
> levels you will need to go down, and the presentation is 
> something that clearly shouldn't be done on the business 
> side, so any help or guidance that you have would be appreciated.
> 
> Thanks!
> 
> -- 
> 
> Kirby Vandivort                      Theoretical Biophysics Group
> Email: [EMAIL PROTECTED]          3051 Beckman Institute
> http://www.ks.uiuc.edu/~kvandivo/    University of Illinois
> Phone: (217) 244-5711                405 N. Mathews Ave
> Fax  : (217) 244-6078                Urbana, IL  61801, USA
> 
> --
> To unsubscribe, e-mail:   
> <mailto:struts-user-> [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]>

Reply via email to