You can add a filter to a web module deployment descriptor (web.xml
)
in two ways:
Add <filter>
and <filter-mapping> to Deployment Descriptor (web.xml)
checkbox.
Type the filter's logical name, and either type the URL pattern, or select
the name of the servlet to which the filter is related.A filter is defined in the deployment descriptor (web.xml
) using
the filter
element. In the filter
element, you declare:
filter-name
, used to to map the filter to a servlet or URLfilter-class
, used by the container to identify the filter
typeinit-params
, which are initialization parameters for the filterOptionally, you can also specify:
See Also | |
---|---|
Editing Web Module Deployment Properties |