Hi,
I've started to look at Servlets but I'm struggling getting started. Here's where I'm up to:
1. Installed Tomcat 5.0 to c:\tomcat
2. Written and compiled HelloWorld servlet
3. Started Tomcat & navigated to
http://localhost:8080 and the default page comes up. The preinstalled demonstration servlets work ok.
However....
I'm following Jason Hunter's Java Servlet Programming and he says to copy the HelloWorld.class file to c:\tomcat\webapps\ROOT\WEB-INF\classes, which I've done, and then navigate to
http://localhost:8080/servlet/HelloWorld. Tomcat responds with:
HTTP Status 404 - /servlet/HelloWorld...the requested resource is not available...
I'm unsure whether I've put the class file in the right place or that I'm missing something. Do I need to do something with web.xml in this basic example?
Best
DF