diff --git a/spring-framework-reference/src/mvc.xml b/spring-framework-reference/src/mvc.xml
index 65dde35be29..5c3369b49d5 100644
--- a/spring-framework-reference/src/mvc.xml
+++ b/spring-framework-reference/src/mvc.xml
@@ -282,7 +282,7 @@
DispatcherServlet declaration and mapping can be
found below.
- <web-app>
+ <web-app>
<servlet>
<servlet-name>example</servlet-name>
@@ -3232,6 +3232,50 @@ public class EditPetForm {
}
+
+ Mapping cookie values with the @CookieValue annotation
+
+ The @CookieValue annotation allows a method parameter to be bound to the value of an HTTP cookie.
+
+
+ Let us consider that the following cookie has been received with an http request:
+ JSESSIONID=415A4AC178C59DACE0B2C9CA727CDD84
+ The following code sample allows you to easily get the value of the "JSESSIONID"cookie:
+ @RequestMapping("/displayHeaderInfo.do")
+public void displayHeaderInfo(@CookieValue("JSESSIONID") String cookie) {
+
+ //...
+
+}
+ This annotation is supported for annotated handler methods in Servlet and Portlet environments.
+
+
+
+
Customizing WebDataBinder