aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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 :-)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Radio button
 
Similar Threads
Check boxes
Text wraps underneath radio buttons
Javascript Problem with onchange event
Use CSS to make a button in pressed mode
get value from radio button