File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

retrieve JSON from servlet

 
Carl Jenkins
Ranch Hand
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey all -

I am trying to get my Ajax (prototype library) application working. The issue I have is that the respnoseText displays the entire html page...

This is the call to the url I just want to display the JSON string for now...




The following is in the Servlet. I know the request stuff looks weird. That is because they use a proprietary tool here and that is how I get to the Request.




Any help would be great - thanks.
 
Lester Burnham
Rancher
Posts: 1337
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is "the entire html page"? What do you think should be returned, and what is actually being returned?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64205
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you saying that's what displayed in the alert differs from what's being written to the response?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic