Basic Introduction Of Sturts2
Apache Struts 2 is an elegant, extensible framework for creating
enterprise-ready Java web applications. The framework is designed to
streamline the full development cycle, from building, to deploying, to
maintaining applications over time. Apache Struts 2 was originally known
as WebWork 2.
This tutorial will teach you how to use Apache Struts for creating enterprise-ready Java web applications in simple and easy steps.
Model View Controller or MVC as it is popularly called, is a software design pattern for developing web applications. A Model View Controller pattern is made up of the following three parts:
Struts2 is a MVC based framework. In the coming chapters, let us see how we can use the MVC methodology within Struts2.
This tutorial will teach you how to use Apache Struts for creating enterprise-ready Java web applications in simple and easy steps.
Audience
This tutorial is designed for Java programmers with a need to understand the Struts 2.x framework and its application. This tutorial will bring you at intermediate level of experties.Prerequisites
Before proceeding with this tutorial you should have a good understanding of the Java programming language. A basic understanding of MVC Framework and JSP or Servlet is very helpful.Basic MVC Architecture
Model View Controller or MVC as it is popularly called, is a software design pattern for developing web applications. A Model View Controller pattern is made up of the following three parts:
- Model - The lowest level of the pattern which is responsible for maintaining data.
- View - This is responsible for displaying all or a portion of the data to the user.
- Controller - Software Code that controls the interactions between the Model and View.
The model
The model is responsible for managing the data of the application. It responds to the request from the view and it also responds to instructions from the controller to update itself.The view
A presentation of data in a particular format, triggered by a controller's decision to present the data. They are script based templating systems like JSP, ASP, PHP and very easy to integrate with AJAX technology.The controller
The controller is responsible for responding to user input and perform interactions on the data model objects. The controller receives the input, it validates the input and then performs the business operation that modifies the state of the data model.Struts2 is a MVC based framework. In the coming chapters, let us see how we can use the MVC methodology within Struts2.
Comments
Post a Comment