How to configure @SkipValidation by XML configuration in Struts 2

后端 未结 2 1367
庸人自扰
庸人自扰 2020-12-11 12:32

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 @SkipValidati

2条回答
  •  离开以前
    2020-12-11 13:01

    You should configure in the struts.xml package with interceptors

    
      
        
    
        
          delete, search, view
        
        
      
    
    

    then use action configuration

    
        /path/to/form.jsp
        
    
    

    apply interceptor to each action that has a validation interceptor referenced explicitly on action or implicitly via on the package.

提交回复
热议问题