2011/12/23 Polina Genova <polina.gen...@gmail.com>:
> Hi,
>
> I accidentally noticed that in valves response.isCommitted()  returns false
> after sendRedirect() is called.
> According to the HttpServletResponse API (and Servlet Specification v.2.5)
> after sendRedirect() is called the response should be considered committed
> so I believe isCommitted() should return true in this case, shouldn't it?
> Reproducible on Tomcat 6.35.
>
> To reproduce this, you may use the attached test materials:
>            - test dummy valve
>            - simple test app with 2 jsps (test.jsp redirects to index.jsp).
>

The spec says about HttpServletResponse.isCommitted(), but your valve is calling
org.apache.catalina.connector.Response.isCommitted().

Those are different methods.

See o.a.c.connector.ResponseFacade#isCommitted() and Response.isAppCommitted().

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to