For example: if you have something like this:
Gender: ( ) Male ( ) Female your jsp will look like this: <html:radio property="gender" value="M"/> Male <br> <html:radio property="gender" value="F"/> Female and you want to make 'Male' the default checked value, then your ActionForm will look like this: //form attributes declaration private String gender = "M"; if you like, you can set the default value inside the reset method too. Henrique Viecili ----- Original Message ----- From: Asim Ghosh To: Struts Users Mailing List Sent: Monday, June 21, 2004 8:31 AM Subject: Re: <html:radio> hello Henrique, can you give me an example... thanks Asim Henrique VIECILI <[EMAIL PROTECTED]> wrote: You must initialize the correspondent variable in ActionForm (inside 'reset' method) with the value you want to be checked, Struts will render the checked 'automagicly'. Henrique Viecili ----- Original Message ----- From: Asim Ghosh To: StrutsUsers Sent: Monday, June 21, 2004 2:39 AM Subject: hello guys how do i implement checked option with example: [input] in struts how to...? asim --------------------------------- ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself --------------------------------- ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself