Struts2 Features



• Easy Integration

It can easily intergrate with any other frameworks. Every framework must provide the abstraction layer for integrating with other frameworks. Spring is the leading framework which supports the maximum possible integrations. Struts 2 provides the more number of integration.

• Improved Tags and Customization

Struts 2 has modified the existing form tags that helped in the reduction in the amount of code written by the developers. It is very easy to extend the tags and write our own functionality. Tag markups in Struts2 can be changed using Freemarker templates which does not require any advanced knowledge like JSP or java.

• POJO Based forms and actions

Struts framework uses actions and action forms for receiving the inputs. These classes extend the Struts API and not the plain POJOs. So to remove this problem, Struts 2 now uses the plain POJOs to receive inputs from the form fields.

• Minimal Configurations

Most of the settings in Struts2 take the default values unless if there is any deviation from the default settings and so a minimal configuration is required for the \struts2 application.

• Integrate View Technologies

It supports various view technologies like XSLT, JSP, Freemarker, velocity, etc.

• AJAX Functionality

With the introduction of Web 2.0 technologies, AJAX is the integral part of any web frameworks and so it becomes necessary to support AJAX within the Struts 2 framework.

• Theme and Templates

Struts 2 provides 3 types of themes: xhtml, simple and css_xhtml. The xhtml is default theme of struts 2. Themes and templates can be used to change the over all look of a website by changing the theme files.

Other features include Struts2 supports extensive validation. It also has in-built support for I18n.