Hi. I'm trying to use annotations to have different validation for different methods. The subject was also brought up last month, but they resolved to use xml for configuration instead.
My action has two methods like this: @Validations ( [EMAIL PROTECTED](type=ValidatorType.FIELD, fieldName="field1", message="Required")} ) public String method1() throws Exception { ... } @Validations ( [EMAIL PROTECTED](type=ValidatorType.FIELD, fieldName="field2", message="Required")} ) public String method2() throws Exception { ... } What I expected this to do is run the validator that corresponds to each method when it's called. Instead, this will run both validators every time. Have I understood the expected behavior wrong? Thanks, Alex