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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
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
 
What is Lock Based Protocol and what is its use? Wipro1
can a static method be overridden SolutionNET11
diffrence between jsp and servelts.  6
explain session tracking. why we used it lion briedge1
What are the high-level thread states?  1
How two threads will communicate with each other?  1
To make an object to begin executing as a separate thread, what method is used?  2
What are the methods used for inter-thread communication? and in what class these methods are defined?  1
Can you write Java code for declaration of multiple inheritance in Java ? Oracle4
diff between jsp include directive and jsp action include? SolutionNET2
What is meant by Superconductivity?  1
Why DOM Parser would take more Memory than SAX parser while they are parsing? OnMobile3
How u validate date in DD/MM/YY format. and how u validate money in ur jsp Tomax3
whats is mean by jndi SolutionNET4
In real time project when will we use Abstract class. and what are the difference between abstract and interface. Tanla-Solutions3
Explain the methods of Naming class, rebind( ) and lookup()?  1
What is deadlock?  1
can a static method be overridden SolutionNET32
How can a dead thread be restarted? Wipro1
I wantr to know, How many number of users logged in to website? can any one answer Cap-Gemini6
 
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