This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


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 :-)
 
wood burning stoves
 
subject: Radio button