This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Servlets and the fly likes <load-on-startup> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "<load-on-startup>" Watch "<load-on-startup>" New topic
Author

<load-on-startup>

Neeraj Vij
Ranch Hand

Joined: Nov 25, 2003
Posts: 315
For below given configuration in web.xml, servlets will be loaded in the following order -

1.)SystemServlet
2.)AuthServlet
3.)LoginServlet


please correct me if I am wrong.



Thanks,
Neeraj.


Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63354
    
  70

What else could possibly make sense?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 689


Hi,

yes you are right.... You can give any positive integer value to load servlet and they choose according to number value....



load first than any other servlet which have grater than 1 value.

Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: <load-on-startup>
 
It's not a secret anymore!