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.
Thanks & regards, Srini
MCP, SCJP-1.4, NCFM (Financial Markets), Oracle 9i - SQL ( 1Z0-007 ), ITIL Certified