• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

multiple dropdown interdependant on the previous selected dropdoen value  RSS feed

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am trying to implement a dropdown which changes on the previous dropdown.

I am using ajax with the help of dojo and have so far been able to populate the values in second dropdown with the changes in the values of the first one.
However now I want to change the values of this combo and try and populate the 3rd combo depending on the selected values.

On the first jsp I am using something like

The DetailAction populates the list and passes to the another jsp detail.jsp

the codes of which are


Now I am stuck as onchange here is not working , so I am not being able to cooenct to another action and then to a third jsp.

Please suggest or any other work around..
 
Ranch Hand
Posts: 188
Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Dushyant,

i think you should use "onChangeTopics" and "reloadTopics" in s:select
http://code.google.com/p/struts2-jquery/wiki/SelectTag
hope this link would help you.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!