- Username:
- anmarysum
- Gender:
- Woman
- Age:
- 43
- Location:
- Collegeport, Texas, United States
- Living situation:
- With kids
- Firstline:
- anmarysum4@gmail.com
- About yourself:
- anmarysum4@gmail.com
- Looking for:
-
20
6
I am using Hibernate validator for form validation in my web-app. I am using the @Length annotation for my String attribute as follows:@Length(min = 5, message = "The field must be at least 5 characters")
private String myString;
However, I have a need to display a different message if the String exceeds 50 characters. Is there a way to use the out-of-the-box @Length validator to do this? An example of what I would like to do (compiler will not let me) is as follows:@Length(min = 5, message = "The field must be at least 5 characters")
@Length(max = 50, message = "The field must be less than 50 characters")
private String myString;
I have tried @Max and @Min and they do not do what I want. Any input would be greatly appreciated!
Collegeport singles - free dating site in United States
Here are single women and men who recently logged in or registered at this free dating site resided in Collegeport of United States. To view and chat with free singles at Collegeport, please click on each personal profile below and send them a message. If you have not signed up yet at this 100% free online dating website then please click on Sign up button above.