Thanks for the replies. I liked both solutions about using wrappers and
reflection. I'm going to have a closer look at them.
Its not really essential that I use these solutions, but I just think its
nice to remove any repeated code where possible.
Thanks
Peter
--
To unsubscribe, e-mail:
> -Original Message-
> From: Peter Georgiou [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 11, 2002 7:53 AM
> To: Struts Users Mailing List
> Subject: iterate over bean attributes
>
>
> Hi
>
> Is there a nice way to iterate over form bean attributes?
>
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
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 previo
4 matches
Mail list logo