Jun 11th, 2008, 03:59 PM
No Error object in request for MultiActionController
I am using the MultiActionController and use a validator that rejects a value of a specific field. The Error is registered correctly in the validator, however, in my JSP <form:error> tag the error cannot be found in the request any more.
I am not sure but it appears that by throwing an Exception after the validator returned unsuccessfully the error may never be attached on the request object (just a guess). Could that be or would there be any other place that could cause this?
In the RequestContext.getErrors(String name, boolean htmlEscape) method the
getModelObject(BindingResult.MODEL_KEY_PREFIX + name);
does return null.