Dear salima, Actually yr web-inf directory and its all folders r Private where as rest of all folders r for public use. The mean to say as private to container b'coz an application can not link to directly these resources (within Web-inf). Moreover, web-inf/classes directory is mapped(or refered - alias) as servlet directory in a container. So when ever link has like "http://localhost:8080/chapter01/servlet/HelloWorldServlet, container will search in a web-inf directory of chapter01 docbase. With best regards, Dharmin
SCJP2 (93%),SCWCD(88%)<br />-------------------------------<br />Never under estimate yr self, just represent yr profile in proper manner.
In Tomcat, the /servlet/ mapping is done by the "invoker" servlet in the global web.xml file present in install_dir/conf directory. However, this mapping can be overridden in our local web.xml file's servlet-mapping section. Thanks.