How to validate fields properly in Struts 2

后端 未结 2 452
感情败类
感情败类 2021-01-26 00:15

I would like to know what I\'m doing wrong here :


    
        

        
2条回答
  •  天涯浪人
    2021-01-26 01:04

    If you wanna skip validation to any action method use @SkipValidation annotation.

    @SkipValidation
    public String yourMethod {
        ...         
        return "input";
    }
    

提交回复
热议问题