In the previous Time for action section, we learned how to use standard JSR-303 bean validation annotations to validate the fields of our domain object. This works great for simple validations, but sometimes, we need to validate some custom rules that aren't available in standard annotations. For example, what if we need to validate that the newly added product ID is not the same as any of the existing product IDs? To accomplish such kinds of validations, we can use custom validation annotations.
Spring MVC Beginner's Guide
By :
Spring MVC Beginner's Guide
By:
Overview of this book
Table of Contents (19 chapters)
Spring MVC Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Configuring a Spring Development Environment
Spring MVC Architecture – Architecting Your Web Store
Control Your Store with Controllers
Working with Spring Tag Libraries
Working with View Resolver
Intercept Your Store with Interceptor
Validate Your Products with a Validator
Give REST to Your Application with Ajax
Apache Tiles and Spring Web Flow in Action
Testing Your Application
Using the Gradle Build Tool
Pop Quiz Answers
Index
Customer Reviews