Struts2 know how (2) Struts2 is what

Source: Internet
Author: User

Struts2 is a popular and mature Web application framework based on the MVC design pattern. Struts2 not just Struts1 the next version, it's a fully rewritten struts architecture.

The WebWork framework is based on the struts framework, and its goal is to provide a strengthened and improved framework struts to make it easier for developers of web development.

After some time, the webwork framework and the struts community teamed up to create the famous STRUTS2 framework.

Features of the Struts 2 framework:

Here are some powerful features that might force you to consider STRUTS2:

    • Pojo form and Pojo action-STRUTS2 's struts framework has been freed from the action form component and STRUTS2 can be entered using any Pojo received form. You can also now see any pojo as an action class.

    • Tag Support-Struts2, enhanced form labels and new tags allow developers to write less code.

    • Ajax support-Struts2 has been acknowledged by Web2.0 technology to be taken over and integrated into the product, by creating Ajax tags that feature very similar standard STRUTS2 tag AJAX support.

    • Easy to integrate-STRUTS2 integrates various integrations with other frameworks such as Spring,tiles and Sitemesh are now easier.

    • Template support-supports build using templates.

    • Plug-in support-improves the features of the core Struts2 and enhances the use of plugins. A large number of plugins are available for Struts2.

    • Performance analysis-STRUTS2 analysis, debugging and analysis applications provide integration. In addition to this, struts offers integrated debugging tools for the built-in debugging.

    • Easy to modify label-Struts2 label labeling, you can adjust the template using Freemarker. This does not require JSP or Java knowledge. Basic Html,xml and CSS knowledge is enough to modify the label.

    • Advocates for less configuration-Struts2 facilitates less configuration with the help of using the default various settings values. Do not have to configure something unless it does not match the default settings of Struts2.

    • View technology:-STRUTS2 has a large support for multiple view options (JSP, Freemarker, Velocity and XSLT)

These are just the top ten features of Struts2, which makes it a corporate-level application framework.

Disadvantages of Struts 2:

While Struts 2 is equipped with a great list of features, I will not forget to mention some of the drawbacks of STRUTS2, which will require a lot of improvement measures:

    • Larger learning curve-to use MVC and struts, you must be accustomed to using the standard Jsp,servlet API and a large number of well-designed frameworks.

    • Poor documentation-struts has the standard servlet and JSP API compared to fewer online resources, many users first discover the online Apache document confusing and poorly managed organization.

    • Less transparency-struts applications, there are many behind the scenes than normal Java-based Web applications, which makes it difficult to understand the framework.

Finally, a good framework should provide common features that many different types of applications can take advantage of. Struts 2 is one of the best network architectures and is highly used to develop rich Internet applications (RIA).

Series Articles:

Struts2 know how (1) Struts2 MVC architecture

Struts2 know how (2) Struts2 is what

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.