Description
The followings show a simple example using Struts' Field Validators
Step 1
Create the jsp page
Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20
Step 2
Create the action class
Step 3
Create the validator.xml.