Using Tomcat 6.0 Refer to Chapter 4 which uses Tomcat 4. Put servlet .class files in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\examples\WEB-INF\classes or the equivalent folder if your Tomcat installs in a different location. Put .html files in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\examples Put .jsp files in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\examples\jsp Configure servlets in the web.xml file in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\examples\WEB-INF For example for the Welcome servlet add Welcome Welcome Welcome /Welcome The url-pattern shows how to get the address of the servlet For Welcome use http://localhost:8080/examples/Welcome.html where Welcome.html is Welcome The URL here should match that in the servlet-mapping tag. We could also a relative URL Welcome