This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
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

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
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: 6310

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!