• Menu
  • Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

JavaBeat

Java Tutorial Blog

  • Java
    • Java 7
    • Java 8
    • Java EE
    • Servlets
  • Spring Framework
    • Spring Tutorials
    • Spring 4 Tutorials
    • Spring Boot
  • JSF Tutorials
  • Most Popular
    • Binary Search Tree Traversal
    • Spring Batch Tutorial
    • AngularJS + Spring MVC
    • Spring Data JPA Tutorial
    • Packaging and Deploying Node.js
  • About Us
    • Join Us (JBC)
  • Java
    • Java 7
    • Java 8
    • Java EE
    • Servlets
  • Spring Framework
    • Spring Tutorials
    • Spring 4 Tutorials
    • Spring Boot
  • JSF Tutorials
  • Most Popular
    • Binary Search Tree Traversal
    • Spring Batch Tutorial
    • AngularJS + Spring MVC
    • Spring Data JPA Tutorial
    • Packaging and Deploying Node.js
  • About Us
    • Join Us (JBC)

Struts 2 Features

December 13, 2013 //  by Krishna Srinivasan//  Leave a Comment

Struts 2 is the advanced version of Struts framework. This new framework is re-invented the MVC framework by integrating to another framework known as Webwork. There are handful of new features introduced in the Struts 2 release. When the Struts 1.0 was released, Struts is considered as the most popular web frameworks used by the Java developers and it simplifies the use of Model – View – Controller (MVC) pattern by introducing the Action classes and Action forms.

Over the years, improvement of web technologies like AJAX, JSF, etc. has made more Java developers felt Struts is more complex framework and started switching to other frameworks. This leads to developing the Struts 2 framework. The primary theme for the Struts 2 framework is the simplifying the web development.

Struts 2 New Features

  • POJO Based forms and actions
  • Improved Tags and Customization
  • AJAX Functionality
  • Easy Integration
  • Minimal Configurations
  • Integrate View Technologies
  • Theme and Templates

POJO Based forms and actions

Since the inception of Struts framework, we used actions and action forms for receiving the inputs. The problem here is these classes are extending the Struts API and not the plain POJOs. Struts 2 has moved away from this concept and used the plain POJOs to receive inputs from the form fields.

Improved Tags and Customization

Struts 2 has improved the existing form tags to reduce the amount of code written by the developers. Also it is very easy to extend the tags and write our own functionality. Tag markups in Struts2 can be changed using Freemarker templates. This does not require any advanced knowledge like JSP or java . Basic knowledge on UI frameworks are sufficient to modify the tags.

AJAX Functionality

With the introduction of Web 2.0 technologies, AJAX is the integral part of any web frameworks. It becomes necessary to support AJAX with in the Struts 2 framework.

Easy Integration

One of the greatest strength of a framework is to easily intergrate with any other frameworks. Every framework must provide the abstraction layer for integrating with other frameworks. Spring is the leading framework who supports the maximum possible integrations. Struts 2 provides the more number of integration lim Spring, Sitemesh, etc.

Minimal Configurations

There is minimal configuration required for the Struts 2 application. Most of the settings will take the default values unless if there is any deviation from the default settings.

Integrate View Technologies

You can work with different view technologies with easy integration to Struts 2. It supports various view technologies like XSLT, JSP, Freemarker, velocity, etc.).

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 for common look and feel across the applications. It would be easy for the developers to change the over all look of a website by changing the theme files.

Category: StrutsTag: Struts 2 Tutorials

About Krishna Srinivasan

He is Founder and Chief Editor of JavaBeat. He has more than 8+ years of experience on developing Web applications. He writes about Spring, DOJO, JSF, Hibernate and many other emerging technologies in this blog.

Previous Post: « Spring Framework 4.0 Release and Features
Next Post: Struts 2 Hello World Example »

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Follow Us

  • Facebook
  • Pinterest

FEATURED TUTORIALS

New Features in Spring Boot 1.4

Difference Between @RequestParam and @PathVariable in Spring MVC

What is new in Java 6.0 Collections API?

The Java 6.0 Compiler API

Introductiion to Jakarta Struts

What’s new in Struts 2.0? – Struts 2.0 Framework

JavaBeat

Copyright © by JavaBeat · All rights reserved
Privacy Policy | Contact