Mar 4th, 2013, 10:04 AM
Validate a request before binding it to an object
Pretty simple question here, I was just wondering if there's any way to configure my controllers so that Spring will run validation before it binds the request to an object? I want to validate against the JSON I receive rather than against the Object, but I can't find any support for this so far.
The only suggestion I've seen is from this empty thread, which suggests over-riding some methods to get the desired behaviour, but I'd much prefer to be able to configure this in my controller implementation or my XML configuration.
Tags for this Thread