Search

Struts 2 Examples


Example
Source
Source + Lib
Struts 2 Validation Using validate() Method Example
Struts 2 ModelDriven Action 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.
In this tutorial you will see different ways to create you own interceptor stack and associate it with the action class.
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  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.
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.
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.
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.
Learn how to integrate Spring and Struts 2 with the help of a simple hello world example.
Learn how to integrate Struts 2 and Tiles using the struts2 tiles plugin.
Learn how to integrate Struts 2 with Hibernator Validator using the Full Hibernate Plugin 4 GA.
Learn how to integrate Struts 2 and Hibernate using the Full Hibernate Plugin 4 GA.
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
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.
In this example you will learn how to use the iterator tag and the if and else tags.
In this tutorial you will see how to use the Struts 2 Bean Tag with the help of a CurrencyConverter bean example.
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.
In this example you will see how to create a simple Hello World Application in Struts
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.
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.



No comments:

Post a Comment