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                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Advanced Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 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
explain the flow of struts?
 Question Submitted By :: Ravi
I also faced this Question!!     Rank Answer Posted By  
 
  Re: explain the flow of struts?
Answer
# 1
a)Client makes a Http Request.
b)Every request has to go to the ActionServlet which 
actually is the Front Controller of Struts.
c)ActionServlet calls the Request Processor for execution 
of the request.
d)Request Processor reads the xml file (Struts-config.xml) 
where the mappings have been provided for each and every 
request and finds out the corresponding Action Class 
mapping to that request.
      (1)How the mappings are provided in Struts-Config.xml 
file will be discussed under Configuring Recipe Module.
e)Before passing the control to the execute() method of the 
Action Class, it instantiates the Form Bean associated with 
that Action Class.
f)Once the Action Form/ Form Bean is instantiated, control 
goes to execute() method of Action Class.
g)Action Class then call the Business Layers to fetch the 
data requested by the client.
h)Once the data is fetched, it is populated in the Form 
Bean and control goes back to Action Class.
i)And finally, Action Class throws the control to JSP page 
where the data is rendered.
j)To render the data on JSP page, data is taken out of Form 
Bean with the help of Struts Tags.
k)Struts provides us with various Tag Libraries which makes 
the JSP page easy to create and maintain.
l)JSP Tags will be discussed later. 

 
Is This Answer Correct ?    6 Yes 1 No
Kumar S
 
  Re: explain the flow of struts?
Answer
# 2
Answer is correct,Need some explanation along with examples 
for configuration xml and all.
 
Is This Answer Correct ?    2 Yes 1 No
Pavankumar
 
 
 

 
 
 
Other Advanced Java Interview Questions
 
  Question Asked @ Answers
 
Why DOM Parser would take more Memory than SAX parser while they are parsing? OnMobile3
wahts is mean by dynavalidatorform in struts/ SolutionNET1
What happens when we invoke a thread?s interrupt method while it is in sleeping or waiting condition?  1
whats is mean by class.forName() whats the return type of class SolutionNET5
How many requests can a server fetch at a time?  1
diff between jsp include directive and jsp action include? SolutionNET4
Name the method to find, if a thread is active or not?  2
whats is mean by object and class? Saka-Solutions1
How many layers are there in RMI and what are they?  1
What is Connection Pooling? Infosys1
function of extends and implements keywords?  1
whether the connectionpooling used in struts? SolutionNET2
What are the thread-to-thread communcation?  1
What state a thread enters, When it blocks on I/O?  2
What is Servlet Filter And What does it work? TCS1
what is stringBuffer and StringBuilder?  3
How to get an image from db2 database plz help as soon as possible  1
what's the main difference between unix os and linux os? TCS2
In a multitiered application which tier is the browser in? Adobe8
What is a compilation unit?  1
 
For more Advanced Java 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