InfoCenter Home >
6: Administer applications >
6.6: Tools and resources quick reference >
6.6.8: Administering Web modules (overview) >
6.6.8.0: Web module properties >
6.6.8.0.11: Assembly properties for servlet mapping

6.6.8.0.11: Assembly properties for servlet mapping

A servlet mapping is a correspondence between a client request and a servlet. Servlet containers use URL paths to map client requests to servlets, and follow the URL path-mapping rules as specified in the Java Servlet specification. The container uses the URI from the request, minus the context path, as the path to map to a servlet. The container chooses the longest matching available context path from the list of Web applications that it hosts.

URL pattern (Required, String)
Specifies the URL pattern of the mapping. The URL pattern must conform to the Servlet specification. The following syntax must be used:

  • A string beginning with a slash character (/) and ending with the slash and asterisk characters (/*) is used as a path mapping.

  • A string beginning with the characters *. is used as an extension mapping.

  • All other strings are used as exact matches only.

  • A string containing only the slash character (/) indicates that the servlet specified by the mapping becomes the default servlet of the application. In this case, the servlet path is the request URI minus the context path, and the path info is null.

Servlet (Required, String)
Specifies the name of the servlet associated with the URL pattern.
Go to previous article: 6.6.8.0.10: Assembly properties for MIME mapping Go to next article: 6.6.8.0.12: Assembly properties for tag libraries

 

 
Go to previous article: 6.6.8.0.10: Assembly properties for MIME mapping Go to next article: 6.6.8.0.12: Assembly properties for tag libraries