Chapter 24. Client-Side Input Validation

Client-Side Input Validation

When you apply client-side validation, you ensure that the values of form elements are valid before the form is submitted. From the server’s perspective, this means reduced workload because it does not have to return the user to the form to correct a value. For users, this means a much faster response because they get an instant warning when a form entry is not correct.

When you use client-side validation, be aware that some users have their JavaScript capability turned off, and some clever people can bypass your client-side validation entirely. Normally you need to perform server-side input validation to ...

Get Java for the Web with Servlets, JSP, and EJB: A Developer’s Guide to J2EE Solutions now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.