© Josh Juneau 2018
Josh JuneauJava EE 8 Recipeshttps://doi.org/10.1007/978-1-4842-3594-2_11

11. Bean Validation

Josh Juneau1 
(1)
Hinckley, Illinois, USA
 

One of the most important pieces of any data-using application is data validation. It is imperative that one validates data before it is inserted into a database in order to maintain integrity. There are a number of reasons to validate, the most important being security purposes, data consistency, and proper formatting. Many web applications use validation in the presentation layer via JavaScript for validation of form data, and also in the persistence layer. However, sometimes JavaScript can become problematic in that the code can become unwieldy and there is also no guarantee that it will execute. ...

Get Java EE 8 Recipes: A Problem-Solution Approach 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.