What you could do create a wrapper object to hold each one, and nest the 
real property in there.
The bean that holds it can hold a reference to it which is in a list as 
well as the typical. That way you wouldn't have to write code to update 
your list all the time as you're always getting access to the final 
property in the final nested bean.

Then you could use a normal property reference to acess it on the first 
page, and the list on the other.

For help with keeping all the nesting take a look at...
http://www.keyboardmonkey.com/struts

:)

In all truth you probably might not want to go that far unless it's 
quite a big list. But you could do it that way.



Arron *



* I can't help it. There's a nested solution for everything... :)

Peter Georgiou wrote:

>Hi
>
>Is there a nice way to iterate over form bean attributes?
>
>The only way I can think of is to copy all the form bean attributes to a
>collection/array.... and then iterate over that data structure.
>
>This situation arises because I'm displaying confirmation page listing all
>the data from a previous form and I'm repeating lots of tables, with the
>only changes each time being the bean attribute.
>
>I was just wondering if there was a nicer way to do this than that what i've
>described.
>
>
>Thanks
>
>
>Peter
>
>
>--
>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]>

Reply via email to