Hi I am using Struts 2.1.6

I am using simple theme. When I use a checkbox tag , a hidden field is
automatically iserted in the final HTML. Please let me know how to get rid
of this hidden field. I have given code sample below:

Code in JSP:

<s:checkbox label="checkbox test"  name="checkboxField1" value="aBoolean"
fieldValue="true" />

Code in HTML:

<input type="checkbox" name="checkboxField1" value="true"
id="formId_checkboxField1"/>
<input type="hidden" id="__checkbox_formId_checkboxField1"
name="__checkbox_checkboxField1" value="true" />

Thanks

Pallav

-- 
View this message in context: 
http://www.nabble.com/Checkbox-and-hidden-field-tp25299309p25299309.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to