Eric, If you are using struts 2, Eric have u tried s:checkboxList ?? Syntax: <s:checkboxlist list="" listKey="" listValue="" name=""/>
If its just a Boolean object ignore the key value :D Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -----Original Message----- From: Jeromy Evans [mailto:[EMAIL PROTECTED] Sent: Sunday, July 13, 2008 1:38 PM To: Struts Users Mailing List Subject: Re: question about submitting checkboxes Eric Hamacher wrote: > Hello: > > > > I have a form on which there can, in theory, be an infinite number of > checkboxes (Users are selecting files from a tree and there is no > telling how many will be selected). The name of each checkbox is > determined at runtime (= to the path of the file). That being the case, > how can I set up an action to read these parameters? Or do it need to > go back to the servlet API? > > If you're using Struts 2, don't name your checkboxes like that. Create an array or list property in your action and include the index in each checkbox name: List<String> filenames = new LinkedList<String>(); <input type="checkbox" name="filenames[0]" value="filenameA"> <input type="checkbox" name="filenames[1]" value="filenameB"> <input type="checkbox" name="filenames[2]" value="filenameC"> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]