by
INTIYAZ MOHAMMAD , Technology Architect , Cognizant Technology Solutions
Crate the action class that extends the ActionSupport class. Then implement the method validate (). In this method do the input validations and populate addFieldError () with error code and error message. Make sure you have the setters and getters in the action class according to your jsp params.