From 0d7f4117ab4b721111f96682e2876789df836168 Mon Sep 17 00:00:00 2001 From: Keith Donald Date: Mon, 14 Sep 2009 22:51:22 +0000 Subject: [PATCH] polish --- spring-framework-reference/src/validation.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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.