This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Struts and the fly likes struts2.0 DoubleSelect condition Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts2.0 DoubleSelect condition" Watch "struts2.0 DoubleSelect condition" New topic
Author

struts2.0 DoubleSelect condition

sankar singh
Ranch Hand

Joined: Aug 17, 2007
Posts: 40
<s:form>
<s oubleselect label="Select Item"
headerValue="--- Please Select ---"
headerKey="1" list="{'Color','Fruits'}"
doubleName="dishes"
doubleList="top == 'Color' ? {'Black','Green','White',
'Yellow','Red','Pink'} : { 'Apple','Banana','Grapes','Mango'}" />
</s:form>


How to write the duoubleList condition for the following scenario

there are two Lists, Country, State

when Country1 is choosing then doubleList (second) choice has to show States of country1
when Country2 is choosing then doubleList (second) choice has to show States of country2

if it is only two option we can use ternary option but it depends on List1 length.. then how to write in struts 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts2.0 DoubleSelect condition
 
Similar Threads
Java Functions
How to enable 2nd dropdown.
optiontransferselect tag problem
doubleselct in struts
problem with tld file