File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

first job of servlet container

Don Bosco
Ranch Hand

Joined: Oct 31, 2002
Posts: 108
When the servlet container gets a request URL:
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

Joined: Mar 22, 2000
Posts: 13037
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.
I agree. Here's the link:
subject: first job of servlet container
It's not a secret anymore!