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 AJAX-JQuery-Struts getJSON function data issue 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 "AJAX-JQuery-Struts getJSON function data issue" Watch "AJAX-JQuery-Struts getJSON function data issue" New topic
Author

AJAX-JQuery-Struts getJSON function data issue

James Winfrey
Ranch Hand

Joined: Jan 04, 2009
Posts: 60
Hi guys

I am trying to call a Struts action on the onchange event of a combo box in Struts using AJAX/JQuery getJSON Function.

The Action will return an arraylist.

The problem is that

1. The combo box selected value that I am passing to the action is not getting passed. (comboSelectedValuevalue in the code below)

2. The arraylist value is not returning from the action to the getjson function (selectedListparameter contains ArrayList in the code below)

I have attached the code below for your reference.

Please do let me know the issue with the code.



 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: AJAX-JQuery-Struts getJSON function data issue
 
Similar Threads
how to use struts 2 to redirect jQuery Ajax request
JSON+Jquery
Undefined on jQuery Ajax Request
struts2 (2.1.8.1) json result type problems
$.getJSON leaking memory?