wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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.
 
Don't get me started about those stupid light bulbs.
 
subject: How to use struts2 radio tag to display 2 different values from the same list.
 
Similar Threads
STruts 2 radio
SQL questions
Auto Populate Combo Box upon Radio Selection
Reading Radio Button values
radio button in struts 2