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
What are the steps required for setting up validator framework in struts?
How client side validation is enabled on a jsp form?
How struts 2 validation works?
What is the difference between Jakarta Struts and Apache Struts? Which one is better to use?
How to use forward action to restrict a strut application to mvc?
What is spring hibernate and struts in java?
What are action errors?
What is the difference in using Action interface and ActionSupport class for our action classes, which one you would prefer?
Do we need to pay the struts if being used in commercial purpose?
Why is it called struts?
What is the purpose of dispatcher result type?
How does struts2 token work?
How can we get Servlet API Request, Response, HttpSession etc Objects in action classes?
What is struts framework?
What are different Struts2 tags? How can we use them?