RequestDispatcher.include() vs response.getOutputStream()
posted 8 years ago
i'm having conflicts between a RequestDispatcher.include(...) and a response.getOutputStream() call. what i'm getting is a getWriter() already been called when the second method is called.
i'd like to know if this is a known 'feature' to any of you. perhaps RequestDispatcher.include(...) is 'implicitly' calling the getWriter(). if so, how could i workaround that, in order to succsesfully call response.getOutputStream() afterwards?
i'm using a gzip compression filter (from Jayson Falkner book www.jspbook.com/code.jsp) which looked like beign causing this, but the problem keeps happening even after taking its declaration out of the web.xml.