Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

I am not getting the validation flow in struts2 please help me?

user-image
Question added by Manjunath D Mopagar
Date Posted: 2013/09/25
INTIYAZ MOHAMMAD
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.