A bit knowledge about <load-on-startup>?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dmjpro
    Top Contributor
    • Jan 2007
    • 2476

    A bit knowledge about <load-on-startup>?

    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!
  • freddieMaize
    New Member
    • Aug 2008
    • 85

    #2
    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

    Working...