This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts2.0 DoubleSelect condition

 
sankar singh
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic