ok..
If i get it correct, you must be using a list of objects. ArrayList(obj1, obj2, ... )
now, on your JSP, you can assign the checkbox a value as chk_<some unique identifier>.
When the user selects the checkboxes and clicks on submit, then in Javascript iterate over all checkboxes and pick up the selected ones, put them in an array and set this in a form property.
One you reach the servlet, you will have the selected checkbox ids from this property and then you can fetch the corresponding objects for those by iterating over the ArrayList and perform the actions required.
Let me know if you need more detail.
Thanks and Regards,
-------------------------------------------------------------------------------------
Komal Renu |
krenu@infocepts.com | www.infocepts.com
-------------------------------------------------------------------------------------