+ 1

Form validation

Hi frnds iam doing my project in servlet so i have to validate the form fields in a relevent manner i have a java page and a jsp page can anyone help me to validate the following name only accept text mobile number should be min 10 and max 12 int text fields only accept letters only

25th Mar 2019, 5:59 AM
RATHEESH BABU M
RATHEESH BABU M - avatar
1 Odpowiedź
+ 1
I am not sure about the exact syntax in Java, but I would suggest using RegEx (Regular expressions) for that. You can find more about them here on sololearn. https://www.sololearn.com/learn/9704/?ref=app
25th Mar 2019, 6:42 AM
Jan Štěch
Jan Štěch - avatar