aspose file tools*
The moose likes Struts and the fly likes Struts2 radio button query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 radio button query" Watch "Struts2 radio button query" New topic
Author

Struts2 radio button query

swarna dasa
Ranch Hand

Joined: Mar 15, 2007
Posts: 108
I am trying to render a radio button, such that they appear one below the other (top-down). [Using a static map]

<s:radio name="serverGroup" value="Single Server" list="#{'singleServer':'Single Server','redundantServer':'Redundant Server'}"/>

We have an attribute requiredposition which takes values right or left, how do i display them one below the other?

http://struts.apache.org/2.x/docs/radio.html

Also, i am trying to preselect the first option but am not able to

Also a colon is displayed (If i have a label then that label is displayed before the colon)



Required output



Any help would be appreciated.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts2 radio button query
 
Similar Threads
struts 2 validation problem
Struts 1.1: html:radio issues
Default selection of Radio Button when added to h:panelGrid
struts radio button default checked issue.
How values of a radio button selected can be retained