This tutorial is an additional work of the previous lab. It allows a Servlet can be accessed by different URLs.
<web-app> <servlet> <servlet-name>HelloServ</servlet-name> <servlet-class>first.servlet.HelloWorld</servlet-class> </servlet> <servlet-mapping> <servlet-name>HelloServ</servlet-name> <url-pattern>/helloworld</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>HelloServ</servlet-name> <url-pattern>/hello_world</url-pattern> </servlet-mapping> </web-app>