Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can I do to send XML flow using servlets

 
Rabih Nassrallah
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First I am new in Java technologies and I need to send an XML flow using servelets. Can anyone guide me.
thanks
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only trick to this is setting the content type according to what the application you are sending to expects. Also, some applications may want to have the content length set. Look in the HttpServletResponse documentation. Be sure to set those values before you start writing the XML.
Bill
------------------
author of:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic