aspose file tools*
The moose likes Servlets and the fly likes Why we have to have the Servlet in the servlet directory, before the  webserver is up Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Why we have to have the Servlet in the servlet directory, before the  webserver is up" Watch "Why we have to have the Servlet in the servlet directory, before the  webserver is up" New topic
Author

Why we have to have the Servlet in the servlet directory, before the webserver is up

Siva kandasamy
Ranch Hand

Joined: Dec 31, 2002
Posts: 139
Why we have to have the Servlet in the servlet directory,
before we start the webser up.? My understanding is, "Servlet is initialized only when it is called".
thanks
siva
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

I'm not sure what you mean. Which directory are you referring to, and why shouldn't the Servlet be there?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61753
    
  67

The servlet may be initialized well before its first reference. The web.xml may specify that the servlet be loaded upon startup, for example. Also, the container is free to load the servlet at any time as long as it is before a request is delivered to it.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Siva kandasamy
Ranch Hand

Joined: Dec 31, 2002
Posts: 139
David & Bear, Thanks you both.
Bear got it correct. Still I am not sure, why servlet has to made available ( ie. place in servlet directory and configure ) to the webserver , before the web server comes up.
 
 
subject: Why we have to have the Servlet in the servlet directory, before the webserver is up