Basic introduction
Struts2 is a Web application framework based on the MVC design pattern. It is essentially equivalent to a servlet. In the MVC design pattern, Struts2 acts as a controller to establish data interaction between the model and the view. Struts 2 is the next generation product of Struts. It is a new Struts 2 framework that merges the technologies of Struts 1 and WebWork. Its new Struts 2 architecture is very different from the Struts 1 architecture. Struts 2 takes WebWork as the core and uses an interceptor mechanism to process user requests. This design also enables the business logic controller to be completely separated from the ServletAPI, so Struts 2 can be understood as an updated product of WebWork. Although there are big changes from Struts 1 to Struts 2, compared to WebWork, the changes in Struts 2 are very small.
How to use
1. Right-click "Project" → select Properties, select Java Build Path in the list on the left side of the pop-up dialog box, select "Add Library" in the pop-up dialog box, select "User Library" in the pop-up dialog box, and then select → Next
2. In the dialog box that appears, you can select the user-defined library that has been created, or select User Libraries. Select "New" in the new dialog box that pops up to create a new user-defined library.
3. In the user-defined library to be created, enter the name of the new custom library.
4. Then add the required Jar package for the new library
5. After adding user-defined libraries according to the above steps, you can reuse these defined User Libraries in the future to save time for development.
it works
it works
it works