• Post Reply Bookmark Topic Watch Topic
  • New Topic

RequestDispatcher.include() vs response.getOutputStream()  RSS feed

camilo cerchiari
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

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.

any ideas are very much appreciated.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!