In this section we will discuss about Struts.
This tutorial will contain the various aspects of Struts such as What is Struts, features of struts, Architecture of Struts, download and install struts, struts actions, Struts Logic Tags, struts integration with other framework, Struts Validator Framework.
Struts is an open source MVC based framework for developing web applications. Craig McClanahan was the creator of Struts and later it donated to Apache Foundation. Struts allows for the web form components, validation, internationalization, error handling, tiles layout etc. Struts framework is also called web framework. Struts is created on MVC based so it separates the model from view and the controller. Struts framework provides the following three key components :
Struts has various of features some of them are as follows :
Struts is based on the MVC architecture that defines the business logic, application data and the presentation data separately. Struts framework is composed with the various of classes and interfaces, organized into different packages. It has also support of the utility and helper classes. Following is the view of the Struts architecture :
Versions Of Struts
Download And Install Struts
Struts is available as open source and it is released by the Apache Software foundation, so you can download Struts from the Apache Software Foundation's website. You can follow this link to download Struts http://struts.apache.org/download.cgi. You can select the specific version of Struts and download.
Struts Built-In Actions
Struts provide the built-in actions that facilitate the various functionalities useful to diverse applications. Some of the Built-in classes are as :
Struts Integration With Other Framework
Struts And Validation
Validation is the main feature of any web-application. It is useful in several cases such as validating for number input, character input, empty field, null input. In Struts these validation is possible due to validation framework. Validation framework needed two XML files named validator-rules.xml and validation.xml
If you enjoyed this post then why not add us on Google+? Add us to your Circles
Liked it! Share this Tutorial
Discuss: Struts Tutorial
Post your Comment