• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting object in response to ajax call

 
Aniket Khadke
Greenhorn
Posts: 29
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSON
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic