Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

keeping checkboxes that were checked

807605Jun 28 2007 — edited Jul 5 2007
hi

i have a jsp page where we output multiple rows to the user (loop). each row has a 'delete' checkbox. so there is one line of code
<c:forEach var="s" items="${rtolst}">
......[other stuff]
<input type="checkbox" name="delete" value="<c:out value="${s.id}"/>">
</c:forEach>
once user selects rows and clicks delete he is taken to another page where he is asked if they are sure about deleting these reports(user can click back or continue). When on this 'warning' page the selected checkboxes have been saved in a session attribute. Now if the user clicks back..we want to be able to save the checkboxes that he clicked.

Can someone suggest the best way to get this done? problem i think is that forEach shown above is ALL the rows but if we want to enable selected checkboxes we'll have to depend on the saved attribute that has selected checkboxes...kind of confused..

Thx
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 2 2007
Added on Jun 28 2007
22 comments
401 views