struts2 workflow

The basic brief process is as follows:

      1. The client browser sends an HTTP request.

      2. According to the web.xml configuration, the request is received by FilterDispatcher.

      3. According to the struts.xml configuration, find the Action class and method to be called, and inject the value into Aciton through the IoC method.

      4. Action calls the business logic component to process business logic. This step includes form validation.

      5. After the Action is executed, find the corresponding return result according to the configuration in struts.xml, and jump to the corresponding page.

      6. Return an HTTP response to the client browser.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326525107&siteId=291194637