Name
<load-on-startup>
Synopsis
<!ELEMENT load-on-startup (#PCDATA)>
Description
The
<load-on-startup>
element indicates that the servlet should be loaded on the startup of
the web application. The optional contents of this element must be a
positive integer that specifies the order in which the servlet should
be loaded. Servlets with lower values are loaded before servlets with
higher values. If no value is specified or if the value specified is
not a positive integer, the container is free to load the servlet at
any time in the startup sequence.
<servlet> <servlet-name>ps</servlet-name> <servlet-class>PrimeSearcher</servlet-class> <load-on-startup/> </servlet>
Get Java Servlet Programming, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.