aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ServletConfig initialized
 
Similar Threads
How does it work...plz explain
Ne chance of a little help?
How to Highlight (select) all elements of a "multiple select" when the page loads?
NullPointerException
Doubts regarding static initializer