> -----Original Message-----
> From: Turley, Michael [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 15, 2004 10:25 AM
> To: 'Struts Users Mailing List'
> Subject: Multiple form elements
> 
> 
> Hi,
> 
>       I have an JSP/Beans application which I am migrating to 
> Struts and
> have come across an interesting problem. My application 
> generates a list of
> form elements to a JSP (which correspond to an ArrayList of 
> objects) of an
> arbitrary size (fed from a datastore) of the form account_1, 
> account_2,
> etc.. Depending on whether a checkbox is checked or not this 
> form element is
> acted upon. 
> 
>       I am looking for a more graceful strategy than creating an
> ActionForm with an arbitrary amount of 
> getAccount_<x>/setAccount_<x> methods
> to retrieve and act on user submitted data. Any ideas?

Okay, a user checks 1+ boxes, and you display 1+ lists in response.

If that is correct, I believe multibox and an array of boolean will be your 
friend, as well as array of accounts.


> 
> Regards,
> 
> Michael
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to