Filter doing a redirect

2003-01-23 Thread Erik Price
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

Re: Filter doing a redirect

2003-01-23 Thread Bill Barker
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 [EMAIL PROTECTED] wrote in