Struts 2 Tutorials
Struts 2 Tutorials
Struts 2 Interceptors Example
In this example you will see how the interceptors are invoked both before and after the execution of the action and how the results are rendered back to the user.
Struts 2 Interceptors Tutorial
In this tutorial you will see different ways to create you own interceptor stack and associate it with the action class.
DispatchAction Functionality In Struts 2 Tutorial
In this tutorial you will learn how to group a set of related functionalities in a single Action class.
Struts 2 Validation Tutorial
In this example you will see how to perform validation in Struts 2. You will learn how the validate() method is called by the workflow interceptor and how the errors are stored using the ValidationAware interface. You will also see how to retrieve error messages from the properties file.
Struts 2 Validation Using XML File Tutorial
In this example you will see how to perform validations using XML validation file. You will learn the naming convention for the XML validation file and see how to do field validations.
Domain Object As JavaBeans Property Tutorial
In this tutorial you will learn how to use a application domain object as the FormBeans property. You will see how the params interceptor help in automatically transferring the form property values to the application domain object and how to retrieve the values back in the jsp page using OGNL expression language.
Struts 2 ModelDriven Action Tutorial
In this tutorial you will lean how to create an Action implementing the ModelDriven interface. You will see how to implement the getModel() method and to retrieve the values back in the jsp page using the OGNL expression language.
Struts 2 File Upload Tutorial
Learn how to upload a file in Struts 2 with the help of the built-in FileUploadInterceptor. You will also see how to validate a file based on the file size and the content type.
Struts 2 Spring Integration Tutorial
Learn how to integrate Spring and Struts 2 with the help of a simple hello world example.
Struts 2 Tiles Integration Tutorial
Learn how to integrate Struts 2 and Tiles using the struts2 tiles plugin.
Struts 2 Hibernate Validation Tutorial
Learn how to integrate Struts 2 with Hibernator Validator using the Full Hibernate Plugin 1.4 GA.
Struts 2 Hibernate Integration Tutorial
Learn how to integrate Struts 2 and Hibernate using the Full Hibernate Plugin 1.4 GA.
Struts 2 Annotation Tutorial 2
In this annotation example you will learn how to use the Action and Result annotations and see how to change the default location of the result pages.
Struts 2 CRUD Tutorial
Learn how to perform Create, Read, Update and Delete (CRUD) operations using Struts 2.
Struts 2 Framework Tutorial
In this tutorial you will learn the step by step process that happens when the Struts 2 Framework receives a request till it generates a response back to the user.
Struts 2 Control Tags Tutorial
In this example you will learn how to use the iterator tag and the if and else tags.
Struts 2 Bean Tag Tutorial
In this tutorial you will see how to use the Struts 2 Bean Tag with the help of a CurrencyConverter bean example.
Struts 2 UI Tags Tutorial
In this example you wil see how to create a registration page using Struts 2 UI tags. You will also learn how to pre populate the form fields, set default values to it and to retrive the values back in the jsp page.
Struts 2 Hello World Tutorial
In this example you will see how to create a simple Hello World Application in Struts 2.
Struts 2 Data Tags Tutorial
In this tutorial you will learn about the ValueStack and the ActionContext and then see how to use the property tag, set tag and push tag to store and retrieve data.
Struts 2 Annotation Tutorial 1
In this example you will learn how to use Annotations in Struts 2 and see how the Convention plug-in helps us create an application with minimal configuration.
Struts 2 Examples
List of all Struts 2 Examples.




