Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 12626 invoked from network); 4 Nov 2010 16:21:34 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Nov 2010 16:21:34 -0000 Received: (qmail 36939 invoked by uid 500); 4 Nov 2010 16:22:03 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 36673 invoked by uid 500); 4 Nov 2010 16:22:02 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 36664 invoked by uid 99); 4 Nov 2010 16:22:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 16:22:02 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [85.158.136.3] (HELO mail123.messagelabs.com) (85.158.136.3) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 04 Nov 2010 16:21:55 +0000 X-VirusChecked: Checked X-Env-Sender: Rob.Gregory@ibsolutions.com X-Msg-Ref: server-10.tower-123.messagelabs.com!1288887692!21242620!2 X-StarScan-Version: 6.2.9; banners=-,-,- X-Originating-IP: [194.169.24.99] Received: (qmail 13604 invoked from network); 4 Nov 2010 16:21:33 -0000 Received: from unknown (HELO UKEXCHANGE1.Europe.iSOFTGroup.co.uk) (194.169.24.99) by server-10.tower-123.messagelabs.com with SMTP; 4 Nov 2010 16:21:33 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: filter order question Date: Thu, 4 Nov 2010 16:20:40 -0000 Message-ID: <6D8F0A4A19FB2A49815191AC1C2B128E09DC05D9@UKEXCHANGE1.Europe.iSOFTGroup.co.uk> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: filter order question Thread-Index: Act8OqT0LvfbTRakSkW8Zdwv3bSzBAAAYLrQ References: From: "Rob Gregory" To: "Tomcat Users List" What was the URL of your request? > -----Original Message----- > From: Aggarwal, Ajay [mailto:Ajay.Aggarwal@stratus.com] > Sent: 04 November 2010 16:09 > To: Tomcat Users List > Subject: filter order question >=20 > From reading the doc, it seems the filters are invoked in the order in > which they appear in filter-mapping in web.xml. However I have a > situation where I have 2 filters one mapped using and > other one mapped using and they are not being invoked in > the right order. >=20 >=20 >=20 > Below is how my filter mappings look >=20 > >=20 > >=20 > F1 >=20 > MyServlet >=20 > >=20 > >=20 > F2 >=20 > /foo/* >=20 > >=20 >=20 >=20 > For my request, they both match and I would have expected the order as > F1 --> F2. However they are being invoked in order F2 --> F1. >=20 >=20 >=20 > What am I doing wrong? >=20 >=20 >=20 > -Ajay >=20 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org