explain the flow of struts?

Answers were Sorted based on User's Feedback



explain the flow of struts?..

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

explain the flow of struts?..

Answer / pavankumar

Answer is correct,Need some explanation along with examples
for configuration xml and all.

Is This Answer Correct ?    4 Yes 1 No

Post New Answer

More Advanced Java Interview Questions

whats is stored procedure,joins

1 Answers   Photon,


What is synchronization?

6 Answers   Verizon,


explain session tracking. why we used it

3 Answers   Lionbridge,


Are there books about seam?

0 Answers  


What is Stream Tokenizer?

0 Answers   TCS,


What is preemptive and Non-preemptive Time Scheduling?

6 Answers   Cognizant,


diff vector arraylist

4 Answers   Saka Solutions,


What is Connection Pooling?

1 Answers   Enteg Technologies, Infosys, Polaris,


What value does readline() return when it has reached the end of a file?

0 Answers  


Name the class that is used to bind the server object with RMI Registry?

0 Answers  


difference between apllet and interface class

1 Answers   Infotech,


What is the difference between the ‘font’ and ‘fontmetrics’ class?

0 Answers  


Categories