Sounds like a job for a map backed action form, see the Struts FAQ for a description of this approach:
http://struts.apache.org/userGuide/building_controller.html#map_action_f orm_classes -----Original Message----- From: Turley, Michael [mailto:[EMAIL PROTECTED] Sent: 15 December 2004 17:25 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? Regards, Michael --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -------------------------------------------------------- If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail. http://www.ml.com/email_terms/ -------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]