Hi, in ur ActionForm define:
String[] chkRecords; //with setter and getter
In ur jsp define checkbox with a multibox:
<html:multibox name="myForm" property="chkRecords">
<bean:write name="list" property="idRecord" />
</html:multibox>
list: ArrayList that it has all the records in order to list in ur jsp
idRecord: id of each record in ur database
Finally in ur Action class:
String[] strRecords = myForm.getchkRecords();
for (int i = 0; i<strRecords.length; i++) {
myDAO.deleteRecord(strRecords[i]);
}
My Actionclass extends DispatchAction and when I click delete button I call
a specific "delete" method. This code is inside this method
I hope it can help u
--
Rafael Taboada
Software Engineer
Cell : +511-97753290
"No creo en el destino pues no me gusta tener la idea de controlar mi vida"