Just conver this to script. Since only checked checkboxes will be sent to the server, this should work.
String [] checkedBoxes = request.getParameterValues("nameOfYourCheckBox");
for(int i = 0; i< checkedBoxes.length; i++)
do whatever....
------------------
Bosun