the servlet is in the directory c:\tomcat4\classes. The servlet file is HelloWWW2.class. When I enter the URL - http://localhost:8080/servlet/HelloWWW2
I get an error message, as below. I am pretty sure that tomcat is set up ok because I get to the main tomcat index page when I enter the URL http://localhost:8080/
Here is the lengthy error message:
In the situation described above, your servlet should live in the C:\Tomcat\webapps\servlet\WEB-INF\classes\HelloWWW2.class
In your WEB-INF directory you must have configured deployment descriptor (web.xml) file, in which you must "register" your servlet.