Features of Struts 2

Google Advertisements

Prev Tutorial Next Tutorial

Features of Struts 2 Framework

Struts 2 framework is used to develop MVC (Model View Controller) based web applications. Struts 2 is the combination of webwork framework of opensymphony and struts 1.


struts2 = webwork + struts1

Struts 2 provides many features that were not in struts 1. Some important features of struts 2 framework are as given below;

  • Simple and Easy
  • Simplified Design
  • Tag support
  • Easy to modify tags Easy Plugins Stateful Checkboxes
  • Configurable MVC components
  • POJO based actions
  • AJAX support
  • Integration support
  • Various Result Types
  • Various Tag support
  • Theme and Template support

Simplified Design

Programming the abstract classes instead of interfaces is one of design problem of struts1 framework that has been resolved in the struts 2 framework. Most of the Struts 2 classes are based on interfaces and most of its core interfaces are HTTP independent. Struts 2 Action classes are framework independent and are simplified to look as simple POJOs. Framework components are tried to keep loosely coupled.

Tag support

Struts2 has improved the form tags and the new tags allow the developers to write less code.

Easy to modify tags - Tag markups in Struts2 can be tweaked using Freemarker templates. This does not require JSP or java knowledge. Basic HTML, XML and CSS knowledge is enough to modify the tags. Easy Plugins - Struts 2 extensions can be added by dropping in a JAR. No manual configuration is required! AJAX Support - The AJAX theme gives interactive applications a significant boost. The framework provides a set of tags to help you ajaxify your applications, even on Dojo. Stateful Checkboxes - Struts 2 checkboxes do not require special handling for false values. QuickStart - Many changes can be made on the fly without restarting a web container. Customizing Controller - Struts 1 lets to customize the request processor per module, Struts 2 lets to customize the request handling per action, if desired. Easy Spring Integration - Struts 2 Actions are Spring-aware. Just need to add Spring beans.
Prev Tutorial Next Tutorial

Google Advertisements

We have more than 5 Groups which have 500000+ Members and some Pages have more than 100000+ members. If you want to post your article on our website/FB Group/FB Page please contact on [email protected] or 8076671483

Buy This Ad Space @$50 per Month, Ad Size 600X200 Contact on: [email protected] or 8076671483

Path variable is set for providing path for all Java tools like java, javac, javap, javah, jar, appletviewer which are used in java programming. All these tools are available in bin folders so we set path upto bin folders.

Classpath variable is set for providing a path for predefined Java classes which is used in our application. All classes are available in lib/rt.jar so we set classpath upto lib/rt.jar.

Cloud computing is the on demand availability of computer system resources, especially data storage and computing power, without direct active management by the user.

College Projects Related to Java, AWT, C Projects for College, C++ Projects for College, Android Projects.

Download Projects

Adsense Advertisements

Buy This ads Space 8076671483

Buy This Ad Space @$120 per Month, Ad Size 300X600 Contact on: [email protected] or 8076671483 Try this Keyword C++ Programs