Struts2 organization ----- Struts2 introduction, struts2 Introduction
Struts2 introduction:
Struts2 developed on the basis of webwork2. Like struts1, struts2 also belongs to the MVC framework. However, although struts2 and struts2 have similar names, they have almost different coding styles. Now that we have struts1, why should we release struts2. The main reason is that struts2 has the following advantages:
1. in software design, struts2 does not rely on servlet APIs and struts APIs. Struts1 is closely coupled with servlet APIs and struts APIs. The application of struts2 can be a non-intrusive design, while struts1 is an intrusive design.
2. struts2 provides an interceptor that can be programmed with AOP to implement functions such as permission interception.
3. struts2 provides a type converter that converts special request parameters to the desired type. In struts1, if we want to implement the same function, we must register the type converter with the underlying implementation of BeanUtil in struts1.
4. struts2 supports multiple presentation layer technologies, such as jsp, freemarker, and velocity.
5. The input validation of struts2 can verify the specified method, solving the long-lasting pain of struts1.
6. provides international resource file implementation in the global scope, package scope, and Action Scope.
In addition, the struts2 source code project is built using maven. Struts-2.3.24 source code package http://pan.baidu.com/s/1mgVZAVu is provided here