Meaningless Drivel is fun!*
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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