title: Using Printwriter in servlet response
body: <p>In this <a href="http://devlibrary.businessobjects.com/businessobjectsxi/en/en/JRC_SDK/jrc_viewersjava_api_doc/doc/jrcsdk_java_viewers_apiRef/com/crystaldecisions/report/web/ServerControl.html#processHttpRequest%28javax.servlet.http.HttpServletRequest,%20javax.servlet.http.HttpServletResponse,%20javax.servlet.ServletContext,%20java.io.Writer%29" rel="noreferrer">link</a> it says:Handles the user's request to generate the HTML for the report and writes the HTML directly to the response object.
  Now in my code, I have:</p>
  
  <pre><code>PrintWriter out = response.getWriter();
  crystalReportViewer.processHttpRequest(request, response, context,null);
  </code></pre>
  
  <p>If I understand correctly, the <code>processHttpRequest</code> will itself do something like <code>response.getWriter().print(.....).</code></p>
  
  <p>So is the code creating 2 instances of <code>PrintWriter</code>?</p>