wood burning stoves 2.0*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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