filter mapping tag reference - novalexei/mod_servlet GitHub Wiki
#####<filter-mapping>
This tag specifies a filter name, and either a URL mapping or servlet name, for a filter that has been defined with the <filter> tag.
Multiple filter-mapping tags can be specified for a single <filter>, providing different URL patterns. See the <url-pattern> tag for examples.
A filter-mapping must not be defined in web.xml before the matching filter entry.
The filter-mapping has two required elements:
- <filter-name> - the filter name, as specified in the <filter-name> element of the <filter> tag
- One of the following:
- <url-pattern> - the URL pattern on which this servlet will be invoked
- <servlet-name> - the name of servlet on which this servlet will be invoked
The filters will be chained in the same order they appear in web.xml file, firsts all the filters with <url-pattern> matching the request URL and after ones with <servlet-name> matching the current request servlet.