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? The Tomcat code is: org.apache.tomcat.facade.RequestDispatcherImpl public void include(ServletRequest request, ServletResponse response) throws ServletException, IOException { Request realRequest = ((HttpServletRequestFacade)request). getRealRequest(); Response realResponse = realRequest.getResponse(); // the strange case in a separate method if( name!=null) { includeNamed( request, response ); return; } Thanks
|
- Re: Tomcat 3.2.1 and RequestDispatcherImpl Jon Doe
- Re: Tomcat 3.2.1 and RequestDispatcherImpl Craig R. McClanahan
- Tomcat 3.2.1 and RequestDispatcherImpl Ana