I strongly recommend you to go through the previous articles in case you are new to Struts2.
In this article we will learn how to leverage Struts2 Validation Framework in an application.
Also on success user will be redirected to Success page.
Struts2 Validation Framework allows us to separate the validation logic from actual Java/JSP code, where it can be reviewed and easily modified later.
The Struts2 Validation Framework alleviates much of the headache associated with handling data validation, allowing you to focus on validation code and not on the mechanics of capturing data and redisplaying incomplete or invalid data.
Non-field validators only add action level messages.
Non-field validators are mostly domain specific and therefore offer custom implementations.
For this we will use Struts Hello World application which we created in previous article as base and starts adding validation logic to it.