tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <>
Subject Re: filter order question
Date Thu, 04 Nov 2010 16:34:52 GMT
2010/11/4 Aggarwal, Ajay <>:
> 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

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:
For additional commands, e-mail:

View raw message