I want to validate specific method only in action class. Action method is this.
public String add() throws Exception {
I had similar problems but then these are couple of things that i rectified :
1) DOCTYPE in the yourAction-yourAlias-validation.xml should be
2)Created a custom interceptor to exclude the methods that need not be validated.Below is a sample for my candidate registration where i had to skip validation for district method which fetched districts for a state.
input,district
/jsps/student/studentregistration.jsp
/jsps/student/registrationfailure.jsp
/jsps/login.jsp
/jsps/includes/dropdown_districts_regoffice.jsp