This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:radio" Watch "html:radio" New topic


trupti nigam
Ranch Hand

Joined: Jun 21, 2001
Posts: 613

Is it possibel with the html:radio struts tag to select the radio button by default?it yes then how to do it?

Venkatraman Kandaswamy
Ranch Hand

Joined: Jul 07, 2004
Posts: 120
Hi Trupti,

Set the default value for the variable in the form-bean and the corresponding radio button gets automatically selected.

--Venkatraman<br />SCJP 1.4<br /><a href="" target="_blank" rel="nofollow">blog</a>
I agree. Here's the link:
subject: html:radio
Similar Threads
How to disable html:checkbox based on html:radio selection
hi i'm doing struts1.3 validation for radio button please i want to display error msg on same jsp
Error: while running jsp on tomcat
how can I set the html radio struts tag checked property to true