I installed
Tomcat 6.xxx on Windows XP. I understand Tomcat 6.0\webapps\ROOT is the default webapps directory. Other subdirectories in webapps directory are docs, host-manager and manager. ROOT has WEB-INF subdirectory and couple of .GIF, .xml, .html, .jsp etc files. I put couple of
test jsp and html files and they worked fine. I, however, am unable to understand where to place a compiled
servlet file and test. Initially I placed directly in ROOT along with jsp, html files but it didn't work. I then created a classes subdirectory in WEB-INF and placed the compiled servet in classes subdirectory of WEB-INF. Still didn't work. I modified the default web.xml file that is available in WEB-INF directory by adding <servlet> and <servlet-mapping> tags for the compiled servlet. Still no use.
Does anyone know what exactly needs to be done to make the example servlet work?