From: Neil Meyer [mailto:[EMAIL PROTECTED]
> [...] but then when I deselect the checkbox the property in the
> form should be adjusted and this doesn't happen. Please tell me if
> anybody knows why?
Because of the way HTTP deals with checkboxes.
http://struts.apache.org/1.2.x/userGuide/struts-h
Hi ,
Your example is very clear. It works fine.
Thanks a lot Rafael,
Erol
Rafael Taboada <[EMAIL PROTECTED]> 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
ilto:[EMAIL PROTECTED]
Sent: Friday, July 01, 2005 9:28 AM
To: Struts Users Mailing List
Subject: Re: struts - checkbox kontrol
More information:
http://husted.com/struts/tips/007.html
--
Rafael Taboada
Software Engineer
Cell : +511-97753290
"No creo en el destino pues no me gusta tener l
More information:
http://husted.com/struts/tips/007.html
--
Rafael Taboada
Software Engineer
Cell : +511-97753290
"No creo en el destino pues no me gusta tener la idea de controlar mi vida"
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.
thanks !
--- Koon Yue Lam <[EMAIL PROTECTED]> wrote:
> Hi !
>
> From your question, I guess that you need a multiple
> of checkboxes, so
> you need instead of
>
> for your reference:
>
http://struts.apache.org/userGuide/struts-html.html#multibox
>
> and a wonderful example:
> http://j2ee.lagn
Hi !
>From your question, I guess that you need a multiple of checkboxes, so
you need instead of
for your reference:
http://struts.apache.org/userGuide/struts-html.html#multibox
and a wonderful example:
http://j2ee.lagnada.com/struts/multibox-example1.htm
you would need an action form, which
7 matches
Mail list logo