what is the purpose of load_on_startup entry in struts-
config.xml?

Answer Posted / jagadish

The load-on-startup element indicates that this
servlet should be loaded (instantiated and have
its init() called) on the startup of the web
application. The optional contents of these
element must be an integer indicating the order in
which the servlet should be loaded. If the value
is a negative integer, or the element is not
present, the container is free to load the servlet
whenever it chooses. If the value is a positive
integer or 0, the container must load and
initialize the servlet as the application is
deployed. The container must guarantee that
servlets marked with lower integers are loaded
before servlets marked with higher integers. The
container may choose the order of loading of
servlets with the same load-on-start-up value.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the steps required for setting up validator framework in struts?

565


How client side validation is enabled on a jsp form?

592


How struts 2 validation works?

580


What is the difference between Jakarta Struts and Apache Struts? Which one is better to use?

576


How to use forward action to restrict a strut application to mvc?

597






What is spring hibernate and struts in java?

492


What are action errors?

569


What is the difference in using Action interface and ActionSupport class for our action classes, which one you would prefer?

570


Do we need to pay the struts if being used in commercial purpose?

551


Why is it called struts?

539


What is the purpose of dispatcher result type?

553


How does struts2 token work?

531


How can we get Servlet API Request, Response, HttpSession etc Objects in action classes?

628


What is struts framework?

553


What are different Struts2 tags? How can we use them?

574