validation - Spring @Validated Causing HTTP 400 -


when add @validate annotaion method signature in controller, http 400 description, "the request sent client syntactically incorrect ().". have idea why?

good code

public modelandview startaccountsubmittal(     accountcredential accountcred, httpservletresponse response)         throws messagingexception { 

bad code

public modelandview startaccountsubmittal(     @validated(value={accountstates.submitted.class})          accountcredential accountcred,      httpservletresponse response, bindingresult result)          throws messagingexception { 

thanks in advance, joe

the uncaught exception had configured not catching error. added exception handler controller , able details. had few fields trying validate, contained nulls, required values. caused http 400. turning on exception handler helped exception , stacktrace. modified code , added groups, added new groups object , controller. works planned.


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -