tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
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" <eprice@ptc.com> wrote in message
news:3E305A3F.7080508@ptc.com...
> 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:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message