To configure a filter, a
web.xml file first defines the filter instance, then maps one or more URL patterns to the instance. This section describes how to configure a filter within a
web.xml file. For a discussion of programming a filter, see
Implementing a Filter.