Struts2 organization ----- Struts2 introduction, struts2 Introduction

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.