explain the Struts flow?

Answer Posted / farheen

1.When the user performs an action on the Web application,
the Web browser sends a request for some resource to the
Web server.

2.The request is received by the servlet filter dispatcher,
which looks at the request and determines the appropriate
Action to be invoked to serve it.

3.The set of interceptors configured for applying some
common functionality to the request -- validation,
workflow, or file upload, for instance -- are automatically
applied to the request before the Action is executed.

4.A new instance of the Action class is created and then
the action method is executed for storing or retrieving
information to or from a database.

5.The output -- be it HTML, images, PDF, or in some other
format -- is rendered by the result.

6.Then the request traverses through the interceptors in
the reverse order. The returning request allows for the
performance of additional processing or clean-up
operations.

7.Finally, the container sends the output to the browser

Is This Answer Correct ?    14 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you explain aware interfaces in struts2?

793


What is xml based validation in struts2?

767


Explain the difference between jakarta struts and apache struts?

723


What are the pros of struts 2?

751


Which file is used by controller to get mapping information for request routing?

807


What is actioncontext?

751


How to work with error tags?

758


Why is action servlet a singleton in struts?

814


What is the purpose of @requiredstringvalidator annotation?

705


What is struts actionmapping?

713


What are the various struts tag libraries?

725


What is the purpose of plug-in tag in struct-config.xml?

691


What are the core classes of struts?

801


Are interceptors and filters different?

769


What is the purpose of @element annotation annotation?

790