1.

What Is The Purpose Of @urlvalidator Annotation?

Answer»

This validator checks that a FIELD is a VALID URL.

public class Employee EXTENDS ActionSupport{

@UrlValidator(message = "Default message", 

key = "i18n.key", SHORTCIRCUIT = true)

public String getURL() {

RETURN url;

}

}

This validator checks that a field is a valid URL.

public class Employee extends ActionSupport{

@UrlValidator(message = "Default message", 

key = "i18n.key", shortCircuit = true)

public String getURL() {

return url;

}

}



Discussion

No Comment Found