You map filters to a URL pattern, or to a servlet or JSP page, to determine when the filter must be executed. When a filter is mapped to another Web component, it is executed when the component itself is requested. When mapped to a URL pattern, the filter is executed whenever this pattern appears in the request URL.
On the web.xml screen, proceed as follows:
...
1. Choose the Mapping tab.
2. To select the filter you are going to map, choose Add from the Filter mapping pane.
3. Select the filter from the Choose Filter screen that appears and choose OK to add it to the Filter mappings pane.
4. Highlight the filter you want to map and proceed as follows:
¡ If you want to map it to a URL pattern, choose URL pattern and enter the pattern into the field.
¡ If you want to map it to a Web component, choose Servlet name and enter the name of the servlet or JSP in the field. The name of the servlet or JSP must be the same as the one you have specified for the component in the Name field under the Web Objects screen.