Spring MVC example - display, validate and submit form. I am a self learner and passionate about training and writing. In real life application, user’s will make lots of mistake in filling forms. Validation should always be on client side, but to protect data integrity you should also validate data on server side as well. Validation can be added into application into two steps i.e. first at view layer and then at controller code. 4.1. Modified addEmployee.jsp
Validation in servlet for jsp form Servlets forum at. If you wish to validate specific content such as RSS/Atom feeds or CSS stylesheets, Mobile OK content, or to find broken links, there are other validators and tools available. Jsp -- Servlet -- Servlet call your business logic which is your java class then Servlet get result from business class -- finally Servlet pass to jsp. So servlet serve as Controller. Java Class represent Business logic. Jsp contains view Part.