Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AJAX-JQuery-Struts getJSON function data issue

 
James Winfrey
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic