File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes html radio Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html radio" Watch "html radio" New topic

html radio

manasa teja
Ranch Hand

Joined: May 27, 2002
Posts: 325
I need ur help!!
Ordinary JSP tag for radio....
<input type="radio" name="xyz" value="100" checked="checked">
( means, the radio button is checked)
what is equivalent code in STruts JSP ??
<html:radio property="xyz" value="100" CHECKED??? />
how to make the radio button checked,??
please help me on this

Junilu Lacar

Joined: Feb 26, 2001
Posts: 6529

Just set the xyz property in the ActionForm to the value that matches the radio button's value. The tag takes care of adding selected for you.

Junilu - [How to Ask Questions] [How to Answer Questions]
I agree. Here's the link:
subject: html radio
It's not a secret anymore!