defaullt selection of radio button

2003-10-10 Thread Sunil Sharma \(C\)
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


RE: defaullt selection of radio button

2003-10-10 Thread muzammil shahbaz
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:

 1 

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


Re: defaullt selection of radio button

2003-10-10 Thread mohamed ebrahim faisal
HI

You will be assigning values for every radio butttons right, give one of 
those values as the iniatilization parameter for the property you have 
assosciated with the radio button in the bean.

I mean

String prop = "x";



after that second radio with value "x" will be selected.

E.FAISAL





From: "Sunil Sharma \(C\)" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: defaullt selection of radio button
Date: Fri, 10 Oct 2003 18:55:59 +0530
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
_
Talk to Karthikeyan. Watch his stunning feats. 
http://server1.msn.co.in/sp03/tataracing/index.asp Download images.

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