title: How to send an XML as response to a HTTP post request from a JSP
body: <p>I need to create a jsp that returns (a small) xml as response to a HTTP POST request. I tried googling and found some pages in SO that accomplish this using servlets as follows:</p>
  
  <pre><code>response.setContentType("text/xml");
  PrintWriter out = response.getWriter();
  </code></pre>
  
  <p>and then writing the xml through the <code>out</code> object. I couldn't find a way to do the same with JSP. Any pointers on how to do that in JSP will be really helpful.</p>