permaculture playing cards*
The moose likes Servlets and the fly likes ServletConfig initialized Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "ServletConfig initialized" Watch "ServletConfig initialized" New topic
Author

ServletConfig initialized

Bharath Chinnadurai Maharajan
Greenhorn

Joined: Dec 22, 2004
Posts: 26
Is a servlet config object initialized by the container automatically for a web application when it starts.


bharath
Eddy Lee Sin Ti
Ranch Hand

Joined: Oct 06, 2005
Posts: 135
The ServletConfig object is initialized for each instance of the servlet defined in the web deployment descriptor whenver the servlet container initialized a servlet. And when does this happen? it's depends on the servlet container strategy. Some of them load all servlets at once when the container started.

You can control when the servlet is initialized using the <load-on-startup> element in the deployment descriptor.


SCJP, SCWCD, SCJWS, IBM 700,IBM 701, IBM 704, IBM 705, CA Clarity Technical<br /> <br /><a href="http://eddyleesinti.blogspot.com" target="_blank" rel="nofollow">http://eddyleesinti.blogspot.com</a>
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: ServletConfig initialized
 
Similar Threads
Ne chance of a little help?
How does it work...plz explain
Doubts regarding static initializer
NullPointerException
How to Highlight (select) all elements of a "multiple select" when the page loads?