explain the flow of struts?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of scaling?

813


Are we allowed to change the transaction isolation property in middle of a transaction?

784


what is a non-repeatable read?

2050


Why won’t the jvm terminate when I close all the application windows?

986


What is the difference between static and non-static with examples?

1614


whats is mean by tiles in struts

1884


How would you detect a keypress in a jcombobox?

895


Explain what is synchronization?

845


To what value is a variable of the string type automatically initialized?

886


Brief description about local interfaces?

927


In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?

866


What is the argument type of a programs main() method?

833


What is the difference between the font and fontmetrics classes?

824


Difference between new operator and class.forname().newinstance()?

836


What is scalable, portability in the view of J2EE?

2213