diff --git a/spring-framework-reference/src/validation.xml b/spring-framework-reference/src/validation.xml index 98acf8f27e..1e4887a956 100644 --- a/spring-framework-reference/src/validation.xml +++ b/spring-framework-reference/src/validation.xml @@ -1384,13 +1384,13 @@ BindingResults results = binder.getBindingResults();}]]>
Spring MVC 3 Validation - Spring MVC 3 now has the ability to automatically validate @Controller method arguments after binding. - Before version 3, it was up to the developer to manually invoke object Validation logic. + Beginning with Spring 3, Spring MVC has the ability to automatically validate @Controller inputs. + In previous versions it was up to the developer to manually invoke validation logic.
Triggering @Controller Method Argument Validation - To trigger validation of a @Controller method argument, simply annotate the argument as @Valid: + To trigger validation of a @Controller input, simply annotate the input argument as @Valid: ]]> - With this configuration, anytime a @Valid @Controller method argument is encountered, it will be validated by the JSR-303 provider. - JSR-303, in turn, will enforce any constraints declared against the argument. + With this configuration, anytime a @Valid @Controller input is encountered, it will be validated by the JSR-303 provider. + JSR-303, in turn, will enforce any constraints declared against the input. Any ConstaintViolations will automatically be exposed as BindingResults renderable by standard Spring MVC form tags.