Hi All,
i am using struts2 and jsp for UI.
I have 3 checkboxes on one of my page,and want to set the bean varible coresponding to these checkboxes on page submit
what i am doin is
<s:checkbox name="abcVO.field1" fieldValue="abcVO.field1" theme="simple" value="abcVO.field1" />
where abcVO is a action classes'(bean's )member which is an value object (a object class )
containing different fields like field1 ,field2.... this field is a character field and values it can take are '1' and '0'
now the problem is i want to set value to 1 if the checkbox is checked else to 0
but it its not getting set in my bean class
,null is what i am getting
my question is what value is set (true/1/or something else) on checking of checkbox element
how to achieve what i am supposed to?
Thanks In advance
-Rohant