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

Answer Posted / priyanka bhattacharyya


If the struts configuration objects were to be created on
the first call from the user it will adversely affect
performance by delaying response for the first user.

By specifying load-on-startup = 1 we tell the servlet
container to call the init() method immediately on start up
of the servlet container.

Is This Answer Correct ?    12 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is validate() and reset() functions?

543


What is spring hibernate and struts in java?

470


What is the purpose of @doublerangefieldvalidator?

589


What are the two different types of validations that the validator framework supports?

500


How are interceptors and servlet filters different?

467






What do you mean by inner class and anonymous class?

575


What is life cycle of an interceptor?

522


Define struts?

604


How can we integrate log4j in Struts2 application?

546


What is the purpose of @intrangefieldvalidator annotation?

823


For a single Struts application, can we have multiple struts-config.xml files?

556


What is defeult result type?

603


What is the difference between validation.xml and validator-rules.xml files in struts?

487


what is meant by Struts Validator Framework?

545


what is ACID test for fresh engineers??what is the pattern??

2343