In web.xml file, What is the Meaning of <load-on-startup> for the Below Contents.
<servlet>
<servlet-name>default</servlet-name>
<servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>listings</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
where can I configure my class file in web.xml.
Is there is Any Option for servlet Class file is Loading on startup when Tomcat is Starting.
Is the above Option is there .how can i call the Startup servlet class in my servletclass(A servlet which is Locatedin webpps/examples)
By
ERams
<servlet>
<servlet-name>default</servlet-name>
<servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>listings</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
where can I configure my class file in web.xml.
Is there is Any Option for servlet Class file is Loading on startup when Tomcat is Starting.
Is the above Option is there .how can i call the Startup servlet class in my servletclass(A servlet which is Locatedin webpps/examples)
By
ERams