Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Best Way to Return XML to AJAX Client

 
Alec Lee
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using JSP return return XML file the my ajax client like this:


Just wondering if this is the right way to return XML in a J2EE server?
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no problem , but what is the use if you are sending a static xml , this is suppose to help in case you need to send dynamic data to a ajaxified client.
Technically your code would work.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic