I had a problem like this too... and if you check the taglib API docs for checkbox, you actually NEED to set the checkbox to false in the reset() method in the form in order for it to work... in my case my default was checked, but I HAD to set it to unchecked in order for it to work... seemed like a strange design decision to me.

Then you can use Javascript to check the checkbox on load, but that's a PIA IMO.

Latchoumi Narayanan wrote:

Hi All,

I am having problems populating(checked) struts checkbox while
loading them in a jsp page, do some one know how to do this. I can't
do it as in the case of normal Html checkbox by mentioning 'checked'
or by any other means like setting value attribute. In the jakartta
FAQ's I saw an article which says to do it by configuring a
ActionFormBean even then I can't do this, I am able to propagate the
Form bean by putting it in the request of Action Class but still its
not working.

Can some one tell me how to check a Struts Checkbox while loading a
page?

Thanks,
With Regards,
Latchoumi.



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




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



Reply via email to