Hi, in the directory ~webapps\examples\Web-inf directory I added this:
<servlet>
<servlet-name>
helloworld
</servlet-name>
<servlet-class>
HelloWorldExample
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>
helloworld
</servlet-name>
<url-pattern>
/helloworld
</url-pattern>
</servlet-mapping>
to the web.xml directory. I am assuming that from this there has to be a java
class in the ~/webapps/examples/Web-inf/classes directory called
HelloWorldExample. However when I call this with a browser do I have to call
it like this:
http://localhost/examples/helloworld -or-
http://localhost/examples/servlets/helloworld -or-
http://localhost/examples/HelloWorldExample
Also does it matter where you put the servlet helloworld. Currently it's in
"C:\tomcat\webapps\examples\servlets\helloworld.html"