Meaningless Drivel is fun!
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts AJAX Call using JQuery" Watch "Struts AJAX Call using JQuery" New topic

Struts AJAX Call using JQuery

arul meh

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

Joined: Jan 10, 2002
Posts: 63548

It's pretty easy:

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

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Struts AJAX Call using JQuery
jQuery in Action, 3rd edition