:: Home Page            
 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                      
Categories >> Software >> Java Related >> Java J2EE >> Struts


 Core Java interview questions  Core Java Interview Questions (1721)
 Advanced Java interview questions  Advanced Java Interview Questions (331)
 Swing interview questions  Swing Interview Questions (44)
 EJB interview questions  EJB Interview Questions (134)
 Servlets interview questions  Servlets Interview Questions (255)
 Struts interview questions  Struts Interview Questions (196)
 JDBC interview questions  JDBC Interview Questions (187)
 JMS interview questions  JMS Interview Questions (9)
 SunOne interview questions  SunOne Interview Questions (3)
 J2EE interview questions  J2EE Interview Questions (71)
 Weblogic interview questions  Weblogic Interview Questions (146)
 Websphere interview questions  Websphere Interview Questions (14)
 Java Networking interview questions  Java Networking Interview Questions (20)
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions (87)
1.when actionservelet execute.
2.when web.xml executes
 Question Submitted By :: Iamit123
I also faced this Question!!     Rank Answer Posted By  
  Re: 1.when actionservelet execute. 2.when web.xml executes
# 1
web.xml will execute during the deployemnt / server start
up as the Action servlet instance been called from web.xml
the call will be secondary where the webxml precedes it
Is This Answer Correct ?    0 Yes 4 No
  Re: 1.when actionservelet execute. 2.when web.xml executes
# 2
1)The "web.xml" comes into the the picture when the
respective server is started. When the time of server is
starting the container will check the syntax and parse
the "web.xml" file.
2)The "web.xml" file is called as a deployment descripta
because it tells the server just what the application
contains that's it beyond of that it's doesn't do any thing.

1)ActionServlet is a predefined Servlet class which comes
along with struts framework.
2)When we implemented a struts based web application then
every request and response must go through the controller
3)We can define our own ActionServlet class insted of using
the predefined ActionServlt class but in most of all cases
we will use only the predefined ActionServlet class.
4)We should configure the ActionServlet class in
the "web.xml" file like as followed




5)If we specified "<load-on-startup>" then
the "ActionServlet" class will load,instantiated and
initilized when the server or application started.
6)If we didn't specify "<load-on-startup>" then
the "ActionServlet" class will load,instantiated and
initialized when the first request comes.
Is This Answer Correct ?    21 Yes 0 No
Shaik Baji
  Re: 1.when actionservelet execute. 2.when web.xml executes
# 3
at container startup, container reads the web.xml using sax

in web.xml,we are configuring ActionServlet with load on
start up tag ,then ActionServlet will loaded,
Is This Answer Correct ?    0 Yes 0 No

Other Struts Interview Questions
  Question Asked @ Answers
what is the disadvantage of struts frame work?   11
what is ForwardAction and IncludeAction in struts? Mind-Tree 3
Main reasons for using servlet as a controller in struts. why not jsp   5
what is use of assert keyword in java..?   1
what happen if the private constructor is written in a claass   6
what are the componenets of struts? HCL 8
what r the disadvantages of MVC-2 Architecture? Process-IT 2
When wil use singleton class in Struts   6
What is the use of ActionErrors in Struts? HCL 2
struts is thread safe or not ?give me answer as early as possible   4
what is mean by custom tag? Wipro 5
can we change the order of parameters in execute()? Polaris 4
For more Struts Interview Questions Click Here 

Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
Copyright 2013  All Rights Reserved.   ::