1. Describe the STRUTS2 implementation process.
The Struts 2 framework itself can be broadly divided into 3 parts: The core controller filterdispatcher, the Business controller action, and the enterprise business logic components implemented by the user. The core controller Filterdispatcher is the foundation of the Struts 2 framework and contains the control flow and processing mechanisms within the framework. Business controller action and business logic components are required to be implemented by the user. While developing the action and business logic components, the user also needs to write the relevant configuration files for use by the core controller filterdispatcher.
The work flow of struts 2 is simpler than struts 1 and basically the same as the webwork framework, so struts 2 is the upgraded version of WebWork. The basic brief flow is as follows: 1. The client browser makes an HTTP request. 2, according to the Web. XML configuration, the request was Filterdispatcher received. 3, according to the Struts.xml configuration, find the action class and method that need to be called, and through the IOC way, the value is injected to Aciton. 4. Action invokes the business logic component to process the business logic, which includes form validation. 5, the action is completed, according to the configuration in the Struts.xml to find the corresponding result of the return, and jump to the corresponding page. 6. Returns the HTTP response to the client browser.
SSH interview Issues in Java