This tag specifies a single URL pattern for a <servlet-mapping>, <web-resource-collection> or <filter-mapping> element.
In <servlet-mapping>, this tag defines the URL patterns which will trigger the servlet.
In <web-resource-collection>, this tag defines the URL patterns which will be protected by the security constraint.
In <filter-mapping>, this tag defines the URL patterns which will trigger the filter.
The tag is somewhat restrictive, because only a few pattern types are possible. However, for servlet mappings, more complex patterns can be set up by mapping all requests to another servlet which provides better parsing.
Examples: