File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes state of servlet object when server starts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "state of servlet object when server starts" Watch "state of servlet object when server starts" New topic
Author

state of servlet object when server starts

sitaram irrinki
Ranch Hand

Joined: Feb 16, 2005
Posts: 158
what is the state of the servlet obj when web server is started
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

It may or may not exist.

If you specify load-on-startup in the servlet declaration in web.xml, you can force it to load when the context loads. Otherwise, it may not be loaded until the first time someone tries to access it.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: state of servlet object when server starts