Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 37627 invoked from network); 24 Jan 2003 04:50:01 -0000 Received: from exchange.sun.com (192.18.33.10) by 208.185.179.12.available.above.net with SMTP; 24 Jan 2003 04:50:01 -0000 Received: (qmail 19823 invoked by uid 97); 24 Jan 2003 04:51:14 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 19807 invoked by uid 97); 24 Jan 2003 04:51:14 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 19787 invoked by uid 98); 24 Jan 2003 04:51:14 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) X-Injected-Via-Gmane: http://gmane.org/ To: tomcat-user@jakarta.apache.org From: "Bill Barker" Subject: Re: Filter doing a redirect Date: Thu, 23 Jan 2003 20:57:42 -0800 Lines: 20 Message-ID: References: <3E305A3F.7080508@ptc.com> X-Complaints-To: usenet@main.gmane.org X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: news X-Spam-Rating: 208.185.179.12.available.above.net 1.6.2 0/1000/N X-Spam-Rating: 208.185.179.12.available.above.net 1.6.2 0/1000/N 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 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: For additional commands, e-mail: