Hi - I am doing something similar. Dont know if its the best way to do it.

My form bean has an indexed property over a vector of values (so that its
size can change dynamically ..)
The form bean also has a size property which tells me how many values exist
in the indexed property.

in the JSP page 
I loop based on the size property and have <html:text> elements that display
the indexed property in a text field.

Pratima

-----Original Message-----
From: Walker, John H. [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 9:56 AM
To: '[EMAIL PROTECTED]'
Subject: Obtaining multilpe values from dynamically generate textboxes


We have the senereo where we are dynamically generating a number of
textfields. The number of textfields are not a known entity so we cannot
have multiple setTextField1(), setTextField2()..
. methods on the Action Form. How does struts handle this case where you
basically want all the values of the textFields concatenated and passed into
one Action Form method as an Array.

Any ideas.
Thanks
John Walker

Reply via email to