Assuming your web-app context name is "chapter14", and web.xml is configured like below,
The following 2 requests will produce the same results.
1.
http://localhost:8080/chapter12/servlet/InitTestServlet ( Note that "/servlet/" here )
2.
http://localhost:8080/chapter12/initTest.jsp If you just make a request like below, you will get 404 not found error.
http://localhost:8080/chapter12/InitTestServlet regards,
Maha Anna
[ December 01, 2002: Message edited by: Maha Annadurai ]