2010/11/4 Aggarwal, Ajay <ajay.aggar...@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-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org