Hi, You need to have a getter and setter for the id you have given to the iterate tag in the form bean. The return type of the getter method should be the type of object you have inside the arraylist. This way you can retrieve the arraylist. One more point to be noted is all the tags like <html:text> which comes inside the iterate tag should have the attribute "indexed" set to true. Only then the getter and setter in the form bean will work
Thanks & Regards Rajam Thirunavukkarasu -----Original Message----- From: Suresh MKVS [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 07, 2007 10:02 PM To: user@struts.apache.org Subject: Struts list regeneration problem Hi All, When i am submitting a page which holds a list of objects, this list is not getting populated in form object. In form object i am holding data as an arraylist of objects and I am populating a series of rows in JSP using struts nested:iterate tag over the array list. But when i am submittting the page the arraylist is always getting intialized to the new arraylist. it is not able to generate list of objects from JSP/HTML page. Is there any round about to solve this problem. Please let me know, is it possible to regeneate List of objects that are displayed in JSP using Iterator tag? -Thanks, Suresh. *Code* Form : ** *private* ArrayList regionList = *new* ArrayList(); JSP: <nested:iterate name ="sureshTestForm" property ="regionList" id="region" indexId="i" type ="com.test.Region"> <tr class=accent> <td width="05%"><html:checkbox name="region" property="markedForDeletion"/></td> <td width="10%"><test:stateoptions name="region" property="stateId"/></td> <td width="32%"><html:text name="region" property="zip"/></td> <td width="10%"><html:text name="region" property="radius" maxlength="5"/></td> <td width="20%"><test:locationoptions name="region" property="locationId"/></td> </tr> </nested:iterate> **************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS******** End of Disclaimer ********INFOSYS*** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]