tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <>
Subject Re: Filter doing a redirect
Date Fri, 24 Jan 2003 04:57:42 GMT
Calling response.sendRedirect sets the HTTP status code to 302, and
populates the 'location' response header.  You almost always simply want to
'return;' from your Filter in this case (since the response is complete),
rather than proceed with doFilterChain.

"Erik Price" <> wrote in message
> I wrote a filter, which performs a redirect *before* calling
> doFilterChain().  It is mapped to "/main.jsp".  I was hoping that this
> would cause the redirect to occur *before* calling main.jsp, but that
> appears not to be the case.  Does the redirect occur afterward even
> though I have not yet called doFilterChain() in my filter when I call
> the redirect?
> Thanks,
> Erik

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message