This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes What does load-on-startup? 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 "What does load-on-startup?" Watch "What does load-on-startup?" New topic

What does load-on-startup?

rex tony
Ranch Hand

Joined: Aug 29, 2007
Posts: 159
What does load-on-startup?
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9344

Your question rather should be What load-on-startup does?

As it implies, it loads the servlet files as your web container starts up.

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Christophe Verré

Joined: Nov 24, 2005
Posts: 14687

You could also try to look into the Servlets Specification where such questions are best answered.

[My Blog]
All roads lead to JavaRanch
Radhakrishna Bhat

Joined: Dec 26, 2007
Posts: 10
loads servlet before first request.

Also decides the order of servlets loading declared in web.xml.
I agree. Here's the link:
subject: What does load-on-startup?
Similar Threads
What does -1 singnify in load-on-startup
Load on Startup
Tomcat 5.0\shared\classes
servlet start up on server initialization