• Post Reply Bookmark Topic Watch Topic
  • New Topic

retrieve JSON from servlet  RSS feed

 
Carl Jenkins
Ranch Hand
Posts: 39
  • 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
  • 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
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!