You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by EROL TEZCAN <st...@yahoo.com> on 2005/07/04 09:43:09 UTC
Re: struts - checkbox control
Hi ,
Your example is very clear. It works fine.
Thanks a lot Rafael,
Erol
Rafael Taboada <ka...@gmail.com> wrote:
Hi, in ur ActionForm define:
String[] chkRecords; //with setter and getter
In ur jsp define checkbox with a 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 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"
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com