This article will guide you how to validate a form from Strutís action classes. We are going to develop a simple web application that allows user to enter email address and password to login. The email and password will be validated on the server side, in the action class.
You are assumed to be familiar with Java web development using Eclipse IDE and understand how a Struts application works at the fundamental level. You also know how to deploy a Java web application on Tomcat server.
Struts is one of the most popular web framework for Java. It comes with 2 major branches, Struts 1 and Struts 2. Both implement MVC architecture but Struts 2 is much simpler, easier to build, deploy and maintain than Struts 1.
This article will guide you through the steps to build a simple Struts 2 application using Eclipse IDE. Download Struts 2 and required libraries
Download latest version of Struts 2 from Download a Release
Select the full distribution,