You can add a filter to a web module deployment descriptor (web.xml
)
in two ways:
Add Information
to Deployment Descriptor (web.xml)
checkbox, type the filter's internal
name, and add the filter's mappings.A filter is defined in the deployment descriptor using the filter element. In the filter element, you declare:
filter-name
. Maps the filter to a servlet or URL.filter-class
. Identifies the filter
type.init-params
. Indicates the initialization parameters for the filter.dispatcher
. Specifies whether to invoke the filter for forward requests,
include requests, error page requests, or a combination of these requests.Optionally, you can also specify:
See Also | |
---|---|
Editing Web Module Deployment Properties |