This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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: 13018
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!