jQuery in Action, 2nd edition*
The moose likes Struts and the fly likes How to make Struts radio button selected by default Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to make Struts radio button selected by default" Watch "How to make Struts radio button selected by default" New topic
Author

How to make Struts radio button selected by default

aman thind
Ranch Hand

Joined: Jun 29, 2007
Posts: 71
Hi,
below is my code:

<s:radio name="abc" id="xyz" cssClass="formElementRadioButton" list="{'instant'}"/>

Can anyone guide me how to make the above radio button selected by default?

Thanks
Aman


Aman Thind
SCJP,SCWCD
JAVA utte mar JAVA,mit JAVA
Anbarasu Aladiyan
Ranch Hand

Joined: Jun 02, 2009
Posts: 182

Hi aman thind ,

I think you can make use of attribute.


A.A.Anbarasu
aman thind
Ranch Hand

Joined: Jun 29, 2007
Posts: 71
anbarasu aladiyan wrote:Hi aman thind ,

I think you can make use of attribute.


Thanks buddy,it worked
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to make Struts radio button selected by default
 
Similar Threads
using html:radio
html:radio
Check a checkbox after hitting a reset button
how to make html:radio default selected
validating textfield with +ve/-ve values using 2 radiobuttons