Spring/Hibernate Validation and property editors
daniel Tue, 02/21/2012 - 2:09pm
- Using Validation with Spring
- WebdataBinder
- Hibernate Validator Api
- Custom Hibernate Constraints
- Constraints avaialable
- The Spring MVC Showcase gives some nice examples of how validation works.
Important thing to note. Data binding occurs before Validation, so if you want to give error messages because a property is not in the correct format, you'll need to delay binding the data to a custom object. You may need to break the input message into its components parts before passing them to the service.
- Log in to post comments