Called getWriter() after getOutputStream()

From: Leandro Fernandez <leandrof@xxx.com>
Date: Mon May 30 2005 - 13:48:40 PDT

Hello,

In resin-3.0.13. I'm getting Response.getWriter() called after
Response.getOutputStream(). According to the spec, both can't be
called?

http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletResponse.html#getWriter()

"Either this method (getWriter()) or getOutputStream() may be called
to write the body, not both."

This is the test:
test/hello.jsp
test/WEB-INF/web.xml
test/WEB-INF/src/test/Filter
test/WEB-INF/src/test/Response

¿Will this affect me in any way?. I mean, if I skip the invalid state
exception checking in the Response.

Kind Regards,
Leandro.

Received on Mon 30 May 2005 13:48:40 -0700

This archive was generated by hypermail 2.1.8 : Thu Sep 28 2006 - 20:18:43 PDT