Please see the javadoc for javax.servlet.http.HttpServletMapping for the normative specification of this feature. This example has two Servlets, ServletA and ServletB. The following hyperlinks explore the various values for the properties of HttpServletMapping, depending which Servlet is invoked and with what path.