Annotations validations an alternative way of XML validation or the simplest 
way to implement the validate method.

Yo have two options:
At method level 
At setter level

In the second if you don’t have the setter in the Action class because it is a 
property of an object, where do i put the annotation. I think it would be in 
the model class but it doesn’t work.

I explain better with a example.
Person class have email property and the action class has a field of Person’s 
type. So the setter method is for Person not for email. If i want to use 
@EmailValidator in a setter level where does it put the annotation?


Un saludo,
José A.

Reply via email to