Filter Mapping

Web Application WAR file -> Filter Mapping tabbed pane

In the Filter Mapping pane, you can edit the mapping of to the servlets that you want them to filter.

To add a servlet filter to the WAR file, click Add. The Add Servlet Filters dialog box is displayed.

  1. Select a filter from the Filter Name column.
  2. To map existing servlet filters to servlets, in the Filter Target pane:
    1. Select Filter Servlets that Match This URL Pattern, if you want to filter based on the Servlet Filter URL pattern.
    2. Enter the URL pattern if you chose URL Pattern.
    Or,
    1. Select Filter this Servlet if you want the servlet filter to filter only one particular servlet.
    2. Select the servlet to be filtered.
  3. To select or deselect a particular dispatcher option, Click the corresponding check box.

To edit a Filter Class's display name or its , click Edit Filter List. This will take you to the Edit Servlet Filter Mapping dialog box.

To map existing servlet filters to servlets:

  1. Select a filter from the Filter Display Name column.
  2. From the Target Type column:
    1. Select Servlet if you want the servlet filter to filter only one particular servlet.
    2. Select a URL Pattern if you want the servlet filter to filter a group of servlets.
  3. In the Targets column:
    1. Enter the name of the servlet you want to filter if you chose Servlet from the Target Type column.
    2. Enter the URL pattern if you chose URL Pattern from the Target Type menu.
To delete a filter-to-servlet mapping:
  1. Select the mapping from the table.
  2. Click Delete.
To move a filter mapping up in the :
  1. Select the mapping from the table.
  2. Click Move Up until the mapping is in the correct order.
To move a filter mapping later in the filter chain:
  1. Select the mapping from the table.
  2. Click Move Down until the mapping is in the correct order.

See also

Add/Edit Servlet Filter Mapping

Edit Servlet Filters



Legal Notices