Servlets GlossaryS2C Home « Servlets Glossary

Glossary Term Description
URL MappingURL mapping pattern matching.

URL MappingTop

The 2.5 Servlet specification allows us to build URL patterns in four different ways as well as applying rules when we have multiple matches for a URL pattern.

Once a match is made, matching terminates and the request is processed.

Match Type URL Pattern Rule Example Example Matches
Exact matchString that must begin with //aServlet/aServlet
Directory matchString that must begin with / and end with /*/aServlet/*/aServlet/one
/aServlet/one/two
/aServlet/one/two/somePage.html
Extension matchString that must begin with **.html/one.html
/anything/two.html
/anything/anything/three.html
Default MatchString that must just be //URLs that don't match with anything else

go to home page Homepage go to top of page Top