File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes How to use struts2 radio tag to display 2 different values from the same list. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to use struts2 radio tag to display 2 different values from the same list." Watch "How to use struts2 radio tag to display 2 different values from the same list." New topic
Author

How to use struts2 radio tag to display 2 different values from the same list.

aman thind
Ranch Hand

Joined: Jun 29, 2007
Posts: 71
I've a list in which i have following values
1 10
2 20
3 30
<s:radio name="Rates" label="Rates" list="{'1 dollar - 10 choclates'}" />
list should be dynamic.
I want to disiplay them with 3 radio buttons and same above structure. Please help me achieving this.
Thanks in advance,
Aman


Aman Thind
SCJP,SCWCD
JAVA utte mar JAVA,mit JAVA
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I'm not sure what you're asking.

If you already have a list of values, just use that as the "list" attribute.
 
 
subject: How to use struts2 radio tag to display 2 different values from the same list.