InterviewSolution
Saved Bookmarks
| 1. |
What is the purpose of RequiredStringValidator annotation? |
|
Answer» This validation annotation checks that a String field is not empty (i.e. non-null with a length > 0). public class Employee extends ActionSupport{ RequiredStringValidator(message = "Default message", key = "i18n.key", shortCircuit = true, trim = true) public String getName() { return name; }}
|
|