File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Return multiple string in ajax response and use it. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Return multiple string in ajax response and use it." Watch "Return multiple string in ajax response and use it." New topic
Author

Return multiple string in ajax response and use it.

zohaib khan
Greenhorn

Joined: Apr 13, 2009
Posts: 22
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
Marshal

Joined: Mar 22, 2005
Posts: 42280
    
  64
If the AJAX call returns JSON then it could contain arbitrarily structured data.


Ping & DNS - my free Android networking tools app
zohaib khan
Greenhorn

Joined: Apr 13, 2009
Posts: 22
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

Joined: Apr 13, 2009
Posts: 22
I got the solution from following link


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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Return multiple string in ajax response and use it.