My jsp page consists of a form that takes in an email address. I then use java to check if my postgresql database already contains that email address. Right now my servlet just redirects the user back to the Registration page if the email address already exists.
What I am trying to do is write an error message on the form "The email address you entered already exists" with java. I haven't figured out how to do it.
Is there some way I could do this with jQuery form validation? I am using that right now for required fields.