Re: Help, How to check (initially) a radio button?

2001-06-20 Thread Eda Srinivasareddy
 
 Do You Yahoo!?
Yahoo! Mail Personal Address - 
Get email at your own domain with Yahoo! Mail.

RE: Help, How to check (initially) a radio button?

2001-06-19 Thread Kwang-Shi Shu

Terp,

Thank you for the reply. However, I did exactly as you suggested
and it did not work. That's why I posted for help.

Shu, Kwang-shi  | Tel 732-460-7848
Village Networks, Inc.  | Fax 732-460-9851
246 Industrial Way West |
Eatontown, NJ 078724| email: [EMAIL PROTECTED]


-Original Message-
From: Torsten Terp [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 19, 2001 4:49 PM
To: [EMAIL PROTECTED]
Subject: RE: Help, How to check (initially) a radio button?


Hi,

If your goal is to have a group of radiobuttons, with one of
them initially checked, you just use the same property, i.e.,
searchCondition and initialise it to the value of the 'value tag'
i.e., strict :

html:radio property=searchCondition value=fuzzy /
html:radio property=searchCondition value=strict/
html:radio property=searchCondition value=whatever /

^terp

 -Original Message-
 From: Kwang-Shi Shu [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 19, 2001 10:31 PM
 To: [EMAIL PROTECTED]; Michelle Popovits; Norman Timmler
 Subject: Help, How to check (initially) a radio button?


 Hi,

   I used Struts ActionForm. Within a form, I have several radio buttons and
I
 want to check one of them at the start of the page. Even though I set the
 particular radio button value in actionForm.class as true, it did not
 work. I tried to put checked (just like HTML format) inside the
 html:radio ... , it did not work since it is not allowed.

   Could somebody show me how to do this? Thanks.

 Shu, Kwang-shi  | Tel 732-460-7848
 Village Networks, Inc.  | Fax 732-460-9851
 246 Industrial Way West |
 Eatontown, NJ 078724| email: [EMAIL PROTECTED]







RE: Help, How to check (initially) a radio button?

2001-06-19 Thread Kwang-Shi Shu

Terps,

You're right. I made the mistale just as you said. Now it works
fine. Thank you for your help.

Shu, Kwang-shi  | Tel 732-460-7848
Village Networks, Inc.  | Fax 732-460-9851
246 Industrial Way West |
Eatontown, NJ 078724| email: [EMAIL PROTECTED]


-Original Message-
From: Torsten Terp [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 19, 2001 5:32 PM
To: Kwang-Shi Shu; [EMAIL PROTECTED]
Subject: RE: Help, How to check (initially) a radio button?


Hi,

I read your post as if you are using a property in the form
with the name of the value element in the radiobutton tag, and
that you tried setting this to true?!?! That is not the way to
do it. Have i misunderstood your first post??

You should use the same name in the property element of the buttons
in your group, and initialise the corresponding form variable with
name of the value element for the chosen radiobutton!
It is working for me...

^terp


 -Original Message-
 From: Kwang-Shi Shu [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 19, 2001 11:12 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: Help, How to check (initially) a radio button?


 Terp,

   Thank you for the reply. However, I did exactly as you suggested
 and it did not work. That's why I posted for help.

 Shu, Kwang-shi  | Tel 732-460-7848
 Village Networks, Inc.  | Fax 732-460-9851
 246 Industrial Way West |
 Eatontown, NJ 078724| email: [EMAIL PROTECTED]


 -Original Message-
 From: Torsten Terp [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 19, 2001 4:49 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Help, How to check (initially) a radio button?


 Hi,

 If your goal is to have a group of radiobuttons, with one of
 them initially checked, you just use the same property, i.e.,
 searchCondition and initialise it to the value of the 'value tag'
 i.e., strict :

 html:radio property=searchCondition value=fuzzy /
 html:radio property=searchCondition value=strict/
 html:radio property=searchCondition value=whatever /

 ^terp

  -Original Message-
  From: Kwang-Shi Shu [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, June 19, 2001 10:31 PM
  To: [EMAIL PROTECTED]; Michelle Popovits; Norman Timmler
  Subject: Help, How to check (initially) a radio button?
 
 
  Hi,
 
  I used Struts ActionForm. Within a form, I have several radio buttons
and
 I
  want to check one of them at the start of the page. Even though I set
the
  particular radio button value in actionForm.class as true, it did
not
  work. I tried to put checked (just like HTML format) inside the
  html:radio ... , it did not work since it is not allowed.
 
  Could somebody show me how to do this? Thanks.
 
  Shu, Kwang-shi  | Tel 732-460-7848
  Village Networks, Inc.  | Fax 732-460-9851
  246 Industrial Way West |
  Eatontown, NJ 078724| email: [EMAIL PROTECTED]