I have included the servlet-name and servlet-class elements in web.xml. I have the HelloWorldServlet class file under webapps/chapt1/web-inf/classes directory.
When I try to run the servlet using
http://localhost:8080/chapt1/servlet/HelloWorldServlet, I get the following error.
HTTP Status 404 - /chapt1/servlet/HelloWorldServlet
type Status report
message /chapt1/servlet/HelloWorldServlet
description The requested resource (/chapt1/servlet/HelloWorldServlet) is not available.
But if I include a servlet-mapping element in the web.xml and try to run the servlet using
http://localhost:8080/chapt1/HelloWorldServlet, it works.
How can I run the servlet using
http://localhost:8080/chapt1/servlet/HelloWorldServlet...How to resolve the above error.
Thanks.
[ June 19, 2003: Message edited by: Saraswathy Krishnamoorth ]