ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Java J2EE  >>  Java Related  >>  Struts
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
what is the purpose of load_on_startup entry in struts-
config.xml?
 Question Submitted By :: Chandranallam
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is the purpose of load_on_startup entry in struts- config.xml?
Answer
# 1
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 ?    9 Yes 2 No
Priyanka Bhattacharyya
 
  Re: what is the purpose of load_on_startup entry in struts- config.xml?
Answer
# 2
If we use load on startup web container creates the objects 
based on the proirity when there are mutliple servlets.We 
use load on start up for giving the proirity.
 
Is This Answer Correct ?    4 Yes 1 No
Srinivasa
 
 
 
  Re: what is the purpose of load_on_startup entry in struts- config.xml?
Answer
# 3
If load_on_startup is not enabled in web.Xml then the
servlet crates the object that class and sevletConfig object
will be created after constructor will be executed after it
will go to life cycle methods in servlets.i.e means lot of
processing will be done when load-on-startup is not enabled.

If load_on_startup is enabled then that moment when
WEBAPPLICATION is deployed all lot of processing will be done.
Then immediately executes LIFECYCLE method in servlets  

Problem: suppose our webapplication contain 10 servlets then
which servlet object will be created?

solution: for this problem If we use load on startup web
container creates the objects based on the proirity when
there are mutliple servlets.We use load_ on_ start up for
giving the proirity.

Note:1 is highest priorty
     2 is next  highest priorty
    -1 ignores that value
EX:<load-on-startup>1</load-on-startup>
 
Is This Answer Correct ?    1 Yes 0 No
Srinu
 
  Re: what is the purpose of load_on_startup entry in struts- config.xml?
Answer
# 4
load_on_startup only shows the priority of the class loading
when u start ur web server in any web apps.

1----hightest prioritty
<load-on-startup>1</load-on-startup>
 
Is This Answer Correct ?    1 Yes 0 No
Anjani Kumar Jha
 
  Re: what is the purpose of load_on_startup entry in struts- config.xml?
Answer
# 5
If we are using any of the custom tags related to struts
like <html:form> etc, then it compulsory we need the tag of
<load-on-startup> in web.xml then only we will get the
output of corresponding jsp on to the browse or else we will
get the some errors like ActionMapping cannot resolve...
 
Is This Answer Correct ?    0 Yes 0 No
Sekhar Babu
 
  Re: what is the purpose of load_on_startup entry in struts- config.xml?
Answer
# 6
To create the servlet objects  when the web application is 
started.

In Case of Struts Action servlet object is created when the 
application is started on proirity basis.We can specify 
some integer value for this in such cases servlets will be 
created on priority basis . Low value servlet will be 
created fisrt...
 
Is This Answer Correct ?    0 Yes 0 No
Srinivasa
 

 
 
 
Other Struts Interview Questions
 
  Question Asked @ Answers
 
In Struts Programming which is the controller,which is the model?  10
Hi Friends, why struts introduced in to web application. Plz dont send any links . Need main reason for implementing struts. Thanks Prakash  2
what is a RequestProcessor? TCS5
Is it possible to create mulitple instance of one Action Class in struts? Satyam9
what is the difference between page and pageContext implicit variables Yash-Technologies2
Can i use constructor in Action Class?If yes how?  7
What is the use of ActionErrors in Struts? HCL1
In ActionClass we can use only one action i.e execute(), but in DispatchAction we can use multiple actions.My question is , we can use multiple actions in Action class if(action.equals("add") if(action.equals("update"). Then when to use Action and DispatchAction which is frequently in webapplications.  2
Is struts thread safe? HCL3
What is Struts Flow? CTS5
project architechture in java IBM2
why do we typecast ActionForm into out plain java bean class in Action class?  5
which MVC architecture struts follows and why? IBM5
Where can i get jar file for use the struts-tags in struts2?  1
drawback of Validation Framework where and how to write the connection pool object in the programe how to debug the programe and application in struts without using eclips  2
whats is mean Actionerrors and Actionerror? Wipro4
What is MVC Architecture? HCL9
If we close the browser,when the specific user session is active.Again if we open browse how to retrive it same user??what code i have to da??? TCS3
how handle when client send multiple request at atime for multiple servlets servlets? IBM2
what is the difference between ServletContext and ServletConfig?  4
 
For more Struts Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com