File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Head First Android this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 radio button query" Watch "Struts2 radio button query" New topic

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?

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.
subject: Struts2 radio button query
It's not a secret anymore!