This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman 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 Building Microservices this week in the Design forum!
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: 13006
    
    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
 
Have you checked out Aspose?
 
subject: first job of servlet container
 
It's not a secret anymore!