This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
In one of my previous project there was a requirement like this ..
A jsp displays a database table for each row a check box is provided .. so that onSubmit all the rows corresponding to the selected checkboxes should get deleted from the DB ( some thing like a email).
This was our solution The check boxes were created in runtime by the jsp ( each row has a check box). The name of each check box is the value of the primary key from the table. When any chek box is selected a hidden textfield is updated with this NAME OF THE selected check box At last the hidden text will have comma seperated values that corresponds to the selected values in check box like this ( 1,2,3,4, ) On Submit this comma seperated value is passed to a stored procedure that deletes all the selected records.