Servlet 파일 추가했을 경우
<servlet>
<description></description>
<display-name>FrontServlet</display-name>
<servlet-name>a</servlet-name>
<servlet-class>comm.FrontServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>a</servlet-name>
<url-pattern>/a</url-pattern>
</servlet-mapping>
<servlet>
<description></description>
<display-name>FrontServlet</display-name>
<servlet-name>b</servlet-name>
<servlet-class>comm.FrontServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>b</servlet-name>
<url-pattern>/b</url-pattern>
</servlet-mapping>
java class 파일에서 슈퍼클래스로 httpservlet을 준 경우
<servlet>
<servlet-name>front</servlet-name>
<servlet-class>comm.FrontServlet2</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>front</servlet-name>
<url-pattern>*.htm</url-pattern>
</servlet-mapping>
위 코드는 주소명에서 .htm으로 끝나는 모든 FrontServlet2를 실행한다는 뜻이다.