posted 16 years ago
Hi,
I want to use struts-html:checkbox to insert/update a field in a table.
I am using dynavalidatoractionform in struts-config and beanutils.copyproperties to populate these fields in a formbean
i need this checkbox to be checked by default when the page comes up. on submit, it should send Y if checked / N if unchecked to the actionclass.
i tried this, by using attribute "initial" in dynavalidatoractionform in struts-config . so by default it gets checked. but when i uncheck it, it still goes as checked to the actionclass
do i have to use hidden/reset method to solve this problem ?
Pls help with some code fragments
[ October 27, 2007: Message edited by: Ratan Kumar ]