This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv 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 REST with Spring (video course) this week in the Spring 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: 9999

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: 14688

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?
It's not a secret anymore!