Working principle and features of Struts2

Source: Internet
Author: User

Working principle and features of Struts2

1. The client sends a Request
2. This request goes through a series of filters)
(First through the optional filter of ActionContextCleanUp, and then through other filters,
Last pass through FilterDispatcher)
3 FilterDispatcher: Ask ActionMapper to determine whether to call an Action.
4 If ActionMapper decides to call an Action, FilterDispatcher processes the request
Hand over to ActionProxy (Dynamic proxy)
5. ActionProxy asks the framework Configuration file through Configuration Manager (struts. xml,
Locate the Action class to be called
6. ActionProxy creates an ActionInvocation instance.
7. The ActionInvocation instance is called in the naming mode. Before and after the Action is called,
It involves the call of the relevant Interceptor (Intercepter.
8. Once the Action is executed, ActionInvocation is responsible for the configuration according to struts. xml.
Find the corresponding response. The returned result may be another Action link or a JSP.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.