In this tutorial, we will discuss about form validation using jQuery plug in & display of submit content using JSP. In the given below example a form is given ,whose fields like name, email, url, content is validated using jQuery plug in. After successful validation, the submitted content is displayed by the JSP page.
The plug in is added to html using following code line :
<script type="text/javascript" src="http://dev.jquery.com/view/trunk/plugins/validate/jquery.validate.js"></script>
formValidation.html
<DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
formValidation.js
|
formValidation.jsp
<%@ page language="java" contentType="text/html;charset=UTF-8" |
OUTPUT
If the email /URL is not valid or You press 'submit ' without entering anything :
The correct validate data is :

After submitting successfully :
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.