Hi Sai,
If the Form has to be kept in the request scope, then to maintain the arrayList u have to call the method from which u are generating the arrayList everytime.
Else u can try it out with multibox.
U have to declare a String Array or int Array in ur Form.
Action Form:
private String[] selectedItems;
public String[] getSelectedItems() { return selectedItems; }
public void setSelectedItems(String[] selectedItems) { this.selectedItems = selectedItems; }
In
JSP:
Where u are declaring a checkbox: declare the multibox
<logic:iterate id="books" name="xxForm" property="books" type="model.BookDTO" indexId="index" >
<html:multibox property="selectedItems">
<bean:write name="books" property="bookName" />
</html:multibox>
When u submit the Form u will get the user selection values from the multibox property.
Thanks