How STRUTS2 works: 1. Send the action request to Strutsprepareandexecutefilterstrutsprepareandexecutefilter.dofilter ()-- Executeoperations.executeaction ()-dispatcher.serviceaction ()-->2,strutsprepareandexecutefilter hand over the processing of the request to Actionproxyactionproxy.execute ()-3,actionproxy creates an instance of actioninvocation and initializes it, actioninvocation instance calls the Action Before and after the process, involving the call of the relevant interceptor and the call to result Actioninvocation.invoke ()--- interceptor.intercept (), Actioninvocation.invokeaction (), Actioninvocation.executeresult ()-->4, after the Action has been executed ( Actioninvocation.invokeaction ()), Actioninvocation finds the corresponding return result (Actioninvocation.executeresult ()) based on the configuration in Struts.xml, and send the result (JSP page) to the client
How the Struts2 works