• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Return multiple string in ajax response and use it.

 
zohaib khan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am able use single string return from ajax response and I need help in using multiple string.

following is the code.

index.jsp



getDetails.jsp




I want to assign values return for No and Name from ajax to respective textfield.

any solution?

- Thanks
Zohaib.
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the AJAX call returns JSON then it could contain arbitrarily structured data.
 
zohaib khan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Thanks for reply.

May I get simple example of JSON structure data to send from server side jsp and read data in ajax response.


- Thanks
Zohaib.
 
zohaib khan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got the solution from following link


http://code.google.com/p/json-simple/wiki/JSPAndAJAXExamples

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic