How to configure @SkipValidation by XML configuration in Struts 2
In Struts 2, I am trying to skip validation on method base on XML configuration. As per my application I can not use annotation. So I cannot use @SkipValidation annotation. Is there any alternative for this? I have one action class which has five methods create , update , delete , search , and view . I want to validate only two methods create and update . You should configure in the struts.xml package with interceptors <interceptors> <interceptor-stack name="validateWorkflowStack"> <interceptor-ref name="basicStack"/> <!-- ... whatever interceptors --> <interceptor-ref name="validation">