explain the flow of struts?
Answers were Sorted based on User's Feedback
Answer / kumar s
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 ? | 11 Yes | 1 No |
Answer / pavankumar
Answer is correct,Need some explanation along with examples
for configuration xml and all.
Is This Answer Correct ? | 4 Yes | 1 No |
Can we define constructors in Servlet?
3 Answers Accenture, Opus, Wipro,
What is synchronization and why is it important?
Is it possible to stop the execution of a method before completion in a sessionbean?
Why won’t the jvm terminate when I close all the application windows?
For an example, if we have some variable in run method, and we created one or more threads. Does all threads will share the same variable or a copy of variable is created for each thread??
What is a modular application? What does module-relative mean?
What are the types of data passing mechanisams under JMS specification?
What exceptions are thrown by RMI?
What is JTS?
whats is mean by tiles in struts
What is in-memory replication?
Is there a guarantee of uniqueness for entity beans?