Announcement Announcement Module
Collapse
No announcement yet.
Validate a request before binding it to an object Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Validate a request before binding it to an object

    Hi everyone.

    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.

    Any ideas?
Working...
X