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 struts2.0 DoubleSelect condition Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets 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
problem with tld file
optiontransferselect tag problem
Java Functions
doubleselct in struts
How to enable 2nd dropdown.