By default, a boolean checkbox returns "ON" when checked, nothing when not
(so you have to initialize and reset it to false in your ActionForm). If you
want a value to be sent when checked, change the checkbox's type to String.

Mark

-----Original Message-----
From: Abhinav (Cognizant) [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 30, 2003 6:55 AM
To: Struts Users Mailing List
Subject: Checkbox 



This one is not getting into my head ..
        <html:checkbox property="chk" value="abc" />
and in the form bean
        boolean getChk(), void setChk(boolean)
checkbox is checked and form is submitted.
how do I retreieve the value "abc"

Thanx.





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to