wood burning stoves 2.0*
The moose likes Struts and the fly likes Radio button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Radio button " Watch "Radio button " New topic
Author

Radio button

Mike Floyd
Greenhorn

Joined: Jan 27, 2005
Posts: 26
Hi, does it exist a method to set a radio button "Checked" ?
i've tried different solutions but until now i haven't successfull!
Thanks
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
All you need to do is set your ActionForm property to the correct value, and Struts will make your radio button "checked"/"selected" when it gets rendered if the values match.


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
Mike Floyd
Greenhorn

Joined: Jan 27, 2005
Posts: 26
Ok, but how i can to do?
I've a formbean that extends Validator form and a simple servlet that to do almost nothing:


i would to know where i can ti do this operation.
thanks
Mike Floyd
Greenhorn

Joined: Jan 27, 2005
Posts: 26
ok, i've solved, thanks. It was so easy :-)
 
 
subject: Radio button
 
Similar Threads
Text wraps underneath radio buttons
Use CSS to make a button in pressed mode
Check boxes
Javascript Problem with onchange event
get value from radio button