Hi All: As we know, when we using Tomcat, all the class file should be under webapps\Root\WEB-INF\classes folder. But when we type in the URL is http://localhost/servlet/anyfile.class so how come I can't file the servlet folder under tomcat folder, but I can run my class file, no problem. So my question is: 1. How come I can't find the folder, but I will be able to run the class file? 2. Does it define inside any file, can I change the servlet to other name? Thanks for the help. Eric
Hi Eric, That is right. This directive maps requests to the default folder for the servlets. And you can configure this URL mapping for names other than 'servlet' for servlets anywhere else. hope this helps. regards ravee.