tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aggarwal, Ajay" <Ajay.Aggar...@stratus.com>
Subject RE: filter order question
Date Thu, 04 Nov 2010 17:42:36 GMT
Thank you so much Konstantin for pointing to these specs!

-----Original Message-----
From: Konstantin Kolinko [mailto:knst.kolinko@gmail.com] 
Sent: Thursday, November 04, 2010 12:35 PM
To: Tomcat Users List
Subject: Re: filter order question

2010/11/4 Aggarwal, Ajay <Ajay.Aggarwal@stratus.com>:
> 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 <servlet-name> and
> other one mapped using <url-pattern> and they are not being invoked in
> the right order.
>

The spec specifies the order. Read chapter
 SRV.6.2.4 Configuration of Filters in a Web Application
of servlet-2_5-mrel2-spec.pdf

http://wiki.apache.org/tomcat/Specifications#Java_Servlet_Specifications

The spec says that the filters mapped with <url-pattern> are called
first. The ones mapped with <servlet-name> are called second.

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message