Newsletter |
Struts Execution Flow Diagram, How Struts Works
Struts » on Oct 22, 2011 { 33 Comments } By Sivateja
Let us see the execution flow of struts2
Execution flow of struts
- When a client request is given, a web container will receive request
- Web container loads web.xml and verifies whether the url-patterns are verified or not, if matches web-container transfer the request to FilterDispatcher
- FilterDispatcher hand overs the request to ActionProxy, it is a proxy class which is responsible to apply before and after services to original business logic
- ActionProxy contacts ConfiguraionManager class, to know the suitable Action for the request and the needed services for the request
- ConfigurationManager class loads structs.xml and provides the required information back to ActionProxy
- ActionPorxy delegates the request along with its information to ActionInvocation
- ActionInvocation executes the interceptors added to an Action from 1 – N, after that it will call the business logic implemented from N – 1 in reverse order
- ActionInvocation receives finally result produced by an action aclass
- ActionProxy transfers the result back to FilterDispatcher
- FilterDispatcher selects an appropriate view, basing on the result
- Finally FilterDispatcher uses RequestDispatchers forwarding mechanism and forward a view as a response back to the client
β ββ
You Might Also Like
::. About the Author .:: | ||
Comments
33 Responses to “Struts Execution Flow Diagram, How Struts Works”
Explanation is nice…but i want to know more about
ACtion invocation and ActionProxy class ???can you explain it ….
Very Nice Article
this article is nice but i would like to know more about stut1.3.could u plz help me…..
i would like to work struts1.x with hibernate , but i don’t have an idea .
please provide one sample application.
nice man….
but i want to know more about annotations used in struts 2.x?
dear sridhar i think this link may help u……
http://struts.apache.org/2.1.6/docs/action-proxy-actionproxy-factory.html
Really a nice description of concept.
Thank You.
Thank u for providing information
Good Explanation.Thank you.
I really like the explanation π
sivateja you are very Greate…..i salute you.
this article is really nice thanx..
Excellent.
simply thanks team…….
Explanation is niceβ¦but i want to know more about
Action invocation and ActionProxy class ???can you explain it β¦.
yes…this article is really helping to me..
thank u sir it was very helpfull to me…
Really Nice job Java4s …….
Nice Explanation Shiva …
very very nice
nice explanation of struts work flow.. thanks a lot
nice sir ji……….
so nice explanation……………………..
Nice Explanation and Very Informative. Thanks
the way of explaining is too good……….thanks……
Really nice it very helpful to learners……..tnqq
Good Explanation I need to know more on Action proxy and filter dispatcher. Anybody please help
Excellent Sivateja.
Very nice explanation. I conveyed the same in my interviews and I got into them. Well done. Keep it up.
discuss the cloud computing architectures
Thank you sir for provide brief explanation to us.
but please provide example sir..
Really awesome
Can you please elaborate what is the responsibility of actionMapper, actionMapping?
can u pls elabotare what is struts 1.x