This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts AJAX Call using JQuery Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts AJAX Call using JQuery" Watch "Struts AJAX Call using JQuery" New topic
Author

Struts AJAX Call using JQuery

arul meh
Greenhorn

Joined: Sep 19, 2009
Posts: 27

I have a doubt in Struts making AJAX call. I have a drop down and I want to change the value of second drop down when First drop is changed. I need help in this. I am using JQuery. I am able to make call to Action class execute method - I need help in displaying data back on user form. Could you please help me in this.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

It's pretty easy:

Your request just needs to return the list of option elements to inject into the dropdown


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Consider Paul's rocket mass heater.
 
subject: Struts AJAX Call using JQuery
 
Similar Threads
dependent select boxes with ajax .
Struts1.1 and Ajax
JSON+Jquery
Struts - Jquery - AJAX
Dependent drop down boxes with javascript