This section provides you a quick introduction to Struts 2 framework. This section we are discussing the new features, struts 2 basics and architecture.
Struts and webwork has joined together to develop the Struts 2 Framework. Struts 2 Framework is very extensible and elegant for the development of enterprise web application of any size.
The Struts 2 framework is designed for simplifying the entire development cycle including building, developing and maintaining the whole application. It is very extensible as each class of the framework is based on an Interface and all the base classes are given an extra application and even you can add your own. The basic platform requirements are Servlet API 2.4, JSP API 2.0 and Java 5.
Features of Struts 2
Architecture of Struts 2 Application
Here we are explaining the architecture of Struts 2 Framework.
Struts 2 Framework is based on MVC (Model-View-Controller) architecture. The logic behind the MVC architecture is to separate all the three parts the object model of the application, the view through which the user interacts with the application and the controller that controls the all the processing done by the application.
The Flow of Struts 2 based Application
Here is the Request Lifecycle in Struts 2 applications:
Struts 2 is a very elegant and flexible front controller framework based on many standard technologies like Java Filters, Java Beans, ResourceBundles, XML etc.
For the Model, the framework can use any data access technologies like JDBC, EJB, Hibernate etc and for the View, the framework can be integrated with JSP, JTL, JSF, Jakarta Velocity Engine, Templates, PDF, XSLT etc.
To know more about struts2 click on the link www.roseindia.net/struts/struts2.
Liked it! Share this Tutorial