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:
response.setContentType("text/xml");
PrintWriter out = response.getWriter();
and then writing the xml through the out
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.