1.

What is the purpose of RequiredFieldValidator annotation?

Answer»

This validation annotation checks that a field is non-null. The annotation must be applied at method level.

public class Employee extends ActionSupport{   RequiredFieldValidator(message = "Default message",    key = "i18n.key", shortCircuit = true)   public String getAge() {       return age;   }}


Discussion

No Comment Found