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.