I have an action class and it has two action methods in it. I want separate validate methods for it. I am new to Struts2. I want something like this. I think it can be implemented by validation interceptor but how?
public class ApplicantRegistration extends ActionSupport{
public String method1(){
// validate1
}
public String method2(){
// validate2
}
@override
public void validate1(){
// validations
}
public void validate2(){
//validations
}
}