• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using JSP with AJAX

 
Timothy Sam
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys! I just wanted to make sure... What kind of response is generated by JSP?

If I came from a controller, and from this controller I forwarded to a JSP... When I try to use AJAX, what response should I use? Should it be responseText or responseXML? Thanks!
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is entirely under control of the server code. By default, the content type will be text/html, but nothing prevents you from setting it to text/xml if you are returning XML rather than HTML.
[ November 12, 2006: Message edited by: Bear Bibeault ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!