I'm trying to output an XmlDocument from the HttpServlet's response object to another servlet.
Created May 4, 2012
Gene De Lisa Try setting the content type for the response object.
response.setContentType("text/html");Here is the second part.
try { Writer out = new OutputStreamWriter(os); doc.getDocumentElement().normalize(); doc.write(out); out.write(" "); out.flush(); } catch(IOException e) { System.err.println(e); }