PROTECTED]
Sent: Thursday, December 18, 2003 10:30 AM
Subject: Check-boxes and formbeans
Hi All,
I have many checkboxes with the same name in my html form. I use struts
framework. When i submit the form, will i be able to access the
checkboxes as an array in the form bean? Or should i have
, 18 December 2003 15:58
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: Check-boxes and formbeans
hi
Just declare a property field with the datatype as array like
String[] mycheckBox
It will automatically populate all of the checkbox selected into the array
property
Regards
Gary
Hi All,
I have many checkboxes with the same name in my html form. I use struts
framework. When i submit the form, will i be able to access the
checkboxes as an array in the form bean? Or should i have a seperate
field for each checkbox in the formbean?
Regards
Vasudevrao gupta
you will be able to access fields with same name as an array...
-Original Message-
From: vasudevrao gupta [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 10:31 AM
To: 'Struts Users Mailing List'
Subject: Check-boxes and formbeans
Hi All,
I have many checkboxes with the same
To: Struts Users Mailing List
Subject: RE: Check-boxes and formbeans
you will be able to access fields with same name as an array...
-Original Message-
From: vasudevrao gupta [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 10:31 AM
To: 'Struts Users Mailing List'
Subject: Check
that's correct...you won't be able to get unchecked checkboxes
-Original Message-
From: Amit Kumar Sharma [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 10:57 AM
To: Struts Users Mailing List
Subject: RE: Check-boxes and formbeans
I had the same problemwhen we do
: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 11:27 AM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Check-boxes and formbeans
that's correct...you won't be able to get unchecked checkboxes
-Original Message-
From: Amit Kumar Sharma [mailto:[EMAIL
respond to Struts Users Mailing List
To: Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:RE: Check-boxes and formbeans
what is the solution for that than ?we can't keep two array to maintain
the
values attachedbecause of this limitation I had
8 matches
Mail list logo