This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes problem of AJAX with struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problem of AJAX with struts" Watch "problem of AJAX with struts" New topic
Author

problem of AJAX with struts

Harish Maridi
Ranch Hand

Joined: May 20, 2008
Posts: 60
Hi I am trying to implement AJAX for populating data in secod dropdown menu when I select the item in forst dropdown menu.

I am able to send the request, I observed it by placing alerts in JSP
but I am unable to get the data in Action class and hence the response too.

I am not clear how to give URL of action class in the script function.

Thanks in advance.
Harish Maridi
Ranch Hand

Joined: May 20, 2008
Posts: 60
Hi..

Now I am able to get the value from the JSP, and I am also generating data by using that value.

But I am not able to send back the data to JSP from my action class. Is there any specific way to do that.. Please let me know.

Thanks In advance
 
Consider Paul's rocket mass heater.
 
subject: problem of AJAX with struts
 
Similar Threads
Best practice
save indexed properties
Dropdown menu in Servlet to displayed the selected value
extracting some elements from ArrayList on JSP
How do I alter my dropdown menu?