File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

html radio

manasa teja
Ranch Hand

Joined: May 27, 2002
Posts: 325
friends
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


MT
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4445
    
    5

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]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: html radio
 
Similar Threads
JSP and radio buttons passing values
how to retrieve data into radiobuttons
dropdown menu default value from table
Default radio button not working
Radio Buttons