Struts 2 Exception Configuration

struts2-thumbnail

Struts 2 simplifies the way we handle the exceptions. In the earlier version of Struts application, handling exceptions needs lot of work. In Struts 2, You can configure the exception type in the configuration file for the each action mapping and redirect to the custom error page. Here I have modified our hello world example […]

Struts 2 Hello World Example

struts2-thumbnail

This tutorials explains how to create a simple struts 2 hello world example and deploy in your server. We are manually creating the required files and running the struts 2 application. Struts 2 Components Action: Create Action class to write your business logic and work as controller. Action classes are used for interaction from the […]

Struts 2 Features

struts2-thumbnail

Struts 2 is the advanced version of Struts framework. This new framework is re-invented the MVC framework by integrating to another framework known as Webwork. There are handful of new features introduced in the Struts 2 release. When the Struts 1.0 was released, Struts is considered as the most popular web frameworks used by the […]

Beginners Guide for Struts 2 Custom Validators

struts2-thumbnail

Struts 2.0 allows the use of Custom validators through the @CustomValidator annotation. The @CustomValidator annotation takes two mandatory parameters, type and message also read: Struts 2 Tutorials Struts Interview Questions Struts and Spring Integration type: Refers to the “name” given to the validator in the validators.xml file. message: Message to be displayed when this validator […]