Mapping Servlets and Filters

Use

This procedure enables you to set servlets and filters mappings in your web application.

The displayed tabs and fields correspond to the following elements in web.xml :

<!ELEMENT servlet-mapping (servlet-name, url-pattern)>

<!ELEMENT servlet-name (#PCDATA)>

<!ELEMENT url-pattern (#PCDATA)>

<!ELEMENT filter-mapping (filter-name (url-pattern | servlet-name))>

<!ELEMENT filter-name (#PCDATA)>

Procedure

To set servlet or filter mapping choose Mapping .

If You Want To

Then

Add a servlet or filter mapping

Choose Servlet or Filter.

Enter the name of the servlet (or filter) to which you want to apply the mapping.

Enter URL pattern for the particular servlet or filter.

Choose Add. The mappings are added and displayed in the Mappings list.

Modify a servlet or filter mapping

Select the mapping you want to modify from the Mappings list.

Edit the entered information and choose Modify.

Remove a servlet or filter mapping

Select the mapping you want to remove from the list and choose Remove.