aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Getting object in response to ajax call Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Getting object in response to ajax call" Watch "Getting object in response to ajax call" New topic
Author

Getting object in response to ajax call

Aniket Khadke
Greenhorn

Joined: Jul 13, 2011
Posts: 29

Hi,

I am building a online examination system using struts 1. Now to fetch the next question I am making a ajax call to action class and action class should return an object i.e. QuestionDTO. The problem I am facing is I am not able to read/parse that object in java script.

Can anybody tell me what is the best approach to achieve this? Means do I need to use Json like thing? or return a String and split it in java script?

Thanks in advance..!!!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60041
    
  65

JSON


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting object in response to ajax call
 
Similar Threads
How to call action class from Ajax
Problem getting servlets working
Struts action class call from java script
How to print java Map name/value pair through JSON object in JS
Notify Users before session expires