I am using
struts 2 checkboxlist to display the list of checkboxes... Everything works fine except I am unable to preselect the checkboxes at the time of update...
allRoles is an arraylist that contains all roles from database.
selectedRoles is also an arraylist that contains roles by each user
I want all roles with selected roles checked.
In my
jsp, I wrote..
<s:checkboxlist list="allRoles" name="roles" listKey="rolesid" listValue="rolesDescription" value="selectedRoles"/>
it doesn't work.
I have search extensively on google, but no help yet.. anyone can help me please.
Thanks