On Thu, 26 Apr 2001, Jon Doe wrote:
> Hi everybody,
>
> For our application we have developed a ResponseWrapper that
> implements ServletResponse.
>
> The problem comes when we use Tomcat 3.2.1.
> RequestDispatcherImpl.include(ServletRequest request, ServletResponse
> response).
> The response parameter that the include method receives is our
> RequestWrapper. The method does a casting to their Wrapper
> (HttpServletRequestFacade ) not to the interface ServletRequest. Besides it is
> using the response from the request not from the method call.
>
>
> Anyone knows why it it is implemented in this way?
> Do you know if it works fine on another version?
>
Wrapping requests and responses is not allowed in Tomcat 3.x, because it
is not allowed by the Servlet 2.2 spec. If you want to wrap these
arguments to an included or forwarded-to servlet, you need to use Tomcat
4.0, because it is allowed under the Servlet 2.3 (Proposed Final
Draft) spec.
Craig McClanahan