From eed67bd11ec213d1f33d27b0600099afa83f37ef Mon Sep 17 00:00:00 2001 From: Ted Nathan Husted Date: Sun, 24 Dec 2006 18:46:35 +0000 Subject: [PATCH] WW-1538 Clarify storeErrorsAcrossRequestExample git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@490057 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/validation/index.jsp | 2 +- .../storeErrorsAcrossRequestExample.jsp | 21 +++++++++++++------ 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/apps/showcase/src/main/webapp/validation/index.jsp b/apps/showcase/src/main/webapp/validation/index.jsp index f3860de1a..a86991017 100644 --- a/apps/showcase/src/main/webapp/validation/index.jsp +++ b/apps/showcase/src/main/webapp/validation/index.jsp @@ -34,8 +34,8 @@
  • Non Field Validator
  • Visitor Validator
  • Client side validation using JavaScript
  • -
  • Back To Showcase
  • Store across request using MessageStoreInterceptor (Example)
  • +
  • Back To Showcase diff --git a/apps/showcase/src/main/webapp/validation/storeErrorsAcrossRequestExample.jsp b/apps/showcase/src/main/webapp/validation/storeErrorsAcrossRequestExample.jsp index 19bfbc7d4..96d81aa3c 100644 --- a/apps/showcase/src/main/webapp/validation/storeErrorsAcrossRequestExample.jsp +++ b/apps/showcase/src/main/webapp/validation/storeErrorsAcrossRequestExample.jsp @@ -17,18 +17,27 @@ configured, the action errors / messages / field errors will be store and remains retrieveable even after a redirect.

    -

    - - - - - + + + +
    ActionMessages:
    ActionErrors:
    + +

    + +

    +

    + Try submitting with an invalid age value, + and note that the browser location changes, + but validation messages are retained. + Because of the redirect, + the input values are not retained. +