1.

What is the purpose of DateRangeFieldValidator annotation?

Answer»

This validation annotation checks that a date field has a value within a specified range.

public class Employee extends ActionSupport{   DateRangeFieldValidator(message = "Default message",    key = "i18n.key", shortCircuit = true,    min = "2005/01/01", max = "2005/12/31")   public String getDOB() {       return dob;   }}


Discussion

No Comment Found