struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gigen Thomas" <>
Subject Re: iterative (list-type) form parameters
Date Tue, 07 Nov 2000 00:33:33 GMT
Hi There,

I am not really sure that  I understood ur question. Anyway....
Well if its a bunch of values that you want to store and want to iterate
through these values , you can have a Collection within ur Bean and then
have get and set methods to access this Collection.


----- Original Message -----
From: Eric <>
To: <>
Sent: Monday, November 06, 2000 3:06 AM
Subject: iterative (list-type) form parameters

> I haven't been able to find a good solution for this
> anywhere...someone must do something decently elegant...
> Many of the forms that I have have parameters that repeat iteratively
> (lists of things) like "Param1, Param2, ..."
> What is the best way to get these into a bean?  I hate to define a
> bunch of properties in the bean for a fixed number of them...  I know
> I could use the array type of property in the bean, but is there a way
> to get the parameters in there easily?  What about parameters that are
> multiply iterative like "Param1Sub1, Param1Sub2, Param2Sub1,
> Param2Sub2, ..."?
> Any ideas?

View raw message