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.
-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>