IDependOn-Set: 1
IDependOn-Set: 134
IDependOn-Set: 3
IDependOn-Set: 78
IDependOn-Set: 90
LastModifiedSecs: 924712547
Parent: 78
SequenceNumber: 2
Title: Use getOutputStream instead
Part: 0
Author-Set: eric@actualsoftware.com
LastModifiedSecs: 924712500
Type: 
Lines: 12
The SSI internals call getOutputStream() so you are not allowed to call getWriter() (only one of the two get functions may be called).

A workaround is to do the following:

 public void doGet(HttpServletRequest req, HttpServletResponse res)
      throws ServletException, IOException
 {
  PrintWriter out = new PrintWriter(res.getOutputStream());
  [...]
  // don't close the PrintWriter or you will lose the rest of your page.
  out.flush();
 }
EndPart: 0
