I tried my advice and it worked.

In my reset method, I normally set my checkbox form bean attributes to "false". I changed one to "true" and the checkbox now comes up checked by default.

Hope that helps,

Erik



Erik Weber wrote:

I think setting the value to "true" just means that "true" is what will be sent to the server if the checkbox is checked when the form submits.

I *think* you would "turn on" the checkbox in the reset method of your form bean, if I am not mistaken . . .

Not 100% sure,

Erik



Joe Argiro wrote:

Hi
we're migrating our code to 1.1
I've got a problem with the html:checkbox. (which used to work in 1.02 )


 <html:checkbox property="displayInfo" value="true"/>

I need to set the initial value to "checked" but it no longer seems to work in 1.1
what is the correct way to do this now




thanks!
--joe




--------------------------------------------------------------------- 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]



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



Reply via email to