Java Servlet Programming, 2nd Edition > C. Deployment Descriptor DTD Reference > <load-on-startup> |
Synopsis<!ELEMENT load-on-startup (#PCDATA)> DescriptionThe <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>
|