aspose file tools*
The moose likes Servlets and the fly likes first job of servlet container Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "first job of servlet container" Watch "first job of servlet container" New topic
Author

first job of servlet container

Don Bosco
Ranch Hand

Joined: Oct 31, 2002
Posts: 108
When the servlet container gets a request URL:
http://localhost/myapps/myservlet
It first checks if myapps directory is present in webapps. if no matching directory, myservlet is assumed to be in a package called myapps in the default web application.
Guys, please correct me if i'm wrong.


SCJP 1.4<p>Wingardium Leviosa!!
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
Actually I think that Tomcat does a scan of webapps when it first starts up, and checks each directory to see if it has a WEB-INF subdirectory with a web.xml descriptor. So when a request comes in, Tomcat already knows if there is a corresponding web application. During that initial scan Tomcat can locate and expand WAR files also.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: first job of servlet container