Question:

What is the use of <load-on-startup> in jsp or struts?

by  |  earlier

0 LIKES UnLike

What is the use of <load-on-startup> in jsp or struts?

 Tags:

   Report

1 ANSWERS


  1. You can ask the page to be loaded when the server starts. This is done via the web.xml file

      &lt;servlet&gt;

        &lt;servlet-name&gt;login&lt;/servlet-name&gt;

        &lt;jsp-file&gt;/login.jsp&lt;/jsp-file&gt;

        &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;

      &lt;/servlet&gt;

    Normally jsp file is compiles on first hit.

    Now the code says precompile a jsp file without waiting for the first hit.

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions