RatanKumar 0 Newbie Poster

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.