• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet response

 
Ve Ku
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have a simple problem. Developing a servlet , which parses a xml. The xml is provided by third party. The third party expects a string for reply , if the XML is ok and is parsed. What is the most appropriate way to send that response from the servlet ?

Thanks
 
Ankit Tripathi
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Go through this link for a short-cut.
link1

Use this code in your servlet and give your custom message to be printed at browser in output stream.

If you want to know about SAX(API for XML),then implement it yourself,study it here-

link2
 
Ve Ku
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exactly what i needed, thanks. I've already did the parsing, but will take a look at the second link anyway. Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic