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 is the purpose of @validations annotation?

764


How to handle exceptions in structs?

789


Which library is provided by struts for form elements like check boxes, text boxes etc?

710


What does the term struts mean?

743


What’s the utilization of resource bundle properties file in struts validation structure?

829


What is the purpose of @urlvalidator annotation?

752


What does modeldriven interceptor?

790


What's mvc pattern ?

769


In struts, how can we access java beans and their properties?

778


What is ognl?

817


How to convert struts to spring mvc?

747


What do struts do?

731


How you will enable front-end validation based on the xml in validation.xml?

781


What are the advantages of spring mvc over struts mvc?

684


What is the purpose of @stringlengthfieldvalidator annotation?

830