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

What method is used to create the daemon thread?

1 Answers  


Explain ioc concept?

0 Answers  


Hi frnds ,iam new to java and j2ee ,my requirement is using java or any j2eetech how to lock an user when he enter wrong credentials(uname&password) more than 3 times.take the username and passowrd in a bean no need to conned Db kindly provide me sample application code or and ideas or links or tutorials plzzzzz urgent for me thanks in advance...

2 Answers   NSN,


How a component can be placed on Windows?

0 Answers   Wipro,


What are the purpose of introspection?

0 Answers  






Why a component architecture for the java platform?

0 Answers  


How will you pass parameters in RMI? Why do you serialize?

0 Answers  


Is it possible to stop the execution of a method before completion in a sessionbean?

0 Answers  


What are the advanatages of RMI ?

1 Answers   HGS,


What is UniCastRemoteObject and what is its use in RMI?

6 Answers  


How two threads will communicate with each other?

2 Answers  


What are the JSP implicit objects ?

1 Answers   eMids,


Categories