Struts is an elegant, extensible, open source framework for developing java web application. It is used to develop Model-View-Controller (MVC) architecture based web applications.
Struts 2 was originally known as webwork 2. Later on webwork and struts combined to produce a new version of struts i.e. struts 2 framework is the combination of webwork and struts.
Struts 2 = webwork + struts 1.
Struts 2 features.
1. POJO forms:
No need of Action forms in Struts 2. Any POJO class can be used to receive the form input.
2. POJO Actions:
No need of Action class in Struts 2. Any POJO class can be used as Action class.
3. Enhanced Tag Support:
Struts 2 provide no. of various tags to ease the development process.
4. Template Support:
Struts 2 provide the template support for generating common look views.
5. Easy Integration support:
Struts 2 applications can be easily integrate with other frameworks like spring, hibernate etc.
6. AJAX support:
Struts 2 provides the ajax support with ajax tags.
7. Enhanced Results support:
More special results can be get by using JasperReports, JFreeChart etc.
Difference between struts 1 and struts 2.
|Struts 1||Struts 2|