我正在使用 struts 2 注释验证来验证密码字段,但是当我给出正确的编码时它显示错误
@RequiredStringValidator(message = "Please provide a password")
@StringLengthFieldValidator(minLength="7",maxLength="15",message="The Password should be minmum 7 character and maximum 15 charcters")
@RegexFieldValidator(expression = "^[0-9A-Z]+$", message = "Password atleast have one Capital and one Number")
任何的想法?