Hi Im using <logic:iterate> shown below to iterate through an arraylist (sitesList) in my actionform (OpportunitySitesForm). This arraylist contains a number of Site objects which have the properties siteName, address1, and city. This is getting displayed correctly. Now when processing the form, I am wondering whether in struts there is a way to retrieve these as objects and automatically populate setSitesList(ArrayList) method, rather than manually use request.getParameterValues for siteName, address1, city, create individual Site objects, add the site objects to an arraylist with Site objects and finally pass the list into setSitesList(arraylist).
<logic:iterate id="myCollectionElement" name="OpportunitySitesForm" property="sitesList" > <tr> <td colspan="2"><input type="text" name="siteName" value='<bean:write name="myCollectionElement" property="siteName" />'></td> <td colspan="2"><input type="text" name="address1" value='<bean:write name="myCollectionElement" property="address1" />'></td> <td colspan="2"><input type="text" name="city" value='<bean:write name="myCollectionElement" property="city" />'></td> <tr> </logic:iterate> Any help would be most appreciated. Thanks! -Asif