How can validate a jsp page through java class ( servlet ) and depending on the result to go forward or to go back with error message?
Thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
doPost()of servlet, receive the dataIf it validates correctly conditionally forward the request to success page or in case of validation fail set the error message in request attribute and forward request again to the FORM page
For example
See detailed information