The bean parameter which are using to store the value for this radio
button after form submission; just initialize that to the value which
you want to be checked by default when page renders.

e.g.

in form-bean, you have:

int param = 1; // initializing with the no. that you want to be checked

in jsp; it will be:

<html:radio property="param" > 1 </html:radio>

Regards,
MMS

                ----------
                From:  Sunil Sharma (C) [SMTP:[EMAIL PROTECTED]
                Sent:  Friday, October 10, 2003 6:26 PM
                To:  Struts Users Mailing List
                Subject:  defaullt selection of radio button

                Group,
                 
                I had some radio buttons. There is requirement to auto
select one of the
                button by default. Can any body give me some pointers
how can I do that
                 
                Thanks in advance
                 
                Sunil

Reply via email to