Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dependent drop down boxes with javascript

 
Pooja Shah
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to Struts. I need to implement dependent drop down boxes.
I do not want to use Ajax, and hence have decided to get this done using Javascript.
I want to know if in my Javascript function, i can specify the method of the action to be called.
If not, then how do I differentiate between the submit from Javascript(when the 2nd drop box is to be populated), and the form submit(when, based on the 2 selected values of the drop down boxes, a file will be downloaded).
Any suggestions will be appreciated!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64835
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pooja Shah wrote:I do not want to use Ajax, and hence have decided to get this done using Javascript.


Ummm, Ajax is JavaScript. What did you think it was?
 
Mohan rvscas
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can use DOJO Concept in struts.
 
Pooja Shah
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the replies... I ultimately did this using the <s:doubleselect> tag.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic