hi
first it depends on the version of tomcat you are using
but this html page addreses all .
http://www.coreservlets.com/Apache-Tomcat-Tutorial/ i would like to point you to specific subsection on this webpage..
just go thru
section 2.3,2.4 and 2.6 and also section 5.1
in brief::
Edit install_dir/conf/server.xml and uncomment this line: <Context path="" docBase="ROOT" debug="0"/>. Not necessary in Tomcat 4.0.3 and earlier. In most versions of Tomcat 5, the element is missing the trailing slash and you need to add it
Edit install_dir/conf/server.xml and add the following just above the entry for the ROOT context from the previous step:
<DefaultContext reloadable="true"/>
Go to install_dir/conf/web.xml (not .../server.xml) and uncomment the servlet and servlet-mapping elements that map the invoker servlet to /servlet/*. In Tomcat 4, you only need to uncomment the servlet-mapping element, and this is not necessary at all prior to Tomcat 4.1.12.
Test a packageless servlet. Compile a simple servlet, put the .class file in install_dir/webapps/ROOT/WEB-INF/classes, and access it with
http://localhost/servlet/ServletName. i tested my app with tomcat 5.0.28 .. it works fine ..
P.s approach mentioned by Jeroen Wenting 1.e, with manager interface is the recommended one compared to the the approach that we were all discussing
for the first time you can test with our approach,but use the second one after you get used with that..
if any doubtss ..lemme know