I can understand the tag <load-on-startup>..and how it works ..but why does it need ...where the significance comes in ..Still i can't figure out!
A bit knowledge about <load-on-startup>?
Collapse
X
-
Hi,
As of my understanding and knowledge goes, you can use it to initiate a servlet at the very beginning, I mean, If you wish to run a servlet whenever the server starts you can give it in the <load-on-startup>
Some thing like an onload() used in javascript.
Well, if you look for an explanation in "head first java" (my favorite book) below is what you will find,
Being the first client to request a servlet SUCKS unless the developer uses < load-on-startup>
fREDDIE
Comment