diff gnv/src/main/java/de/intevation/gnv/action/NextArtifactStepAction.java @ 991:33198e55371c

Improved session handling in the gui. If a session has timed out, the user gets to the start point - the fis selection. gnv/trunk@1192 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 10 Jun 2010 15:13:08 +0000
parents 0441e78cd900
children 9b126bceb0b2
line wrap: on
line diff
--- a/gnv/src/main/java/de/intevation/gnv/action/NextArtifactStepAction.java	Thu Jun 10 09:54:58 2010 +0000
+++ b/gnv/src/main/java/de/intevation/gnv/action/NextArtifactStepAction.java	Thu Jun 10 15:13:08 2010 +0000
@@ -127,8 +127,6 @@
 
                     }
                     catch (ArtifactDatabaseInputException e) {
-                        log.debug("================ CATCH ME ======================");
-                        log.debug("===== ERROR MSG: " + e.getMessage());
                         log.error(e, e);
                         request.setAttribute(
                             CommunicationKeys.REQUEST_EXCEPTION_INPUT_ID,
@@ -145,9 +143,7 @@
                 }
             }else{
                 log.warn("SessionTimeout has occured");
-                request.setAttribute(CommunicationKeys.REQUEST_EXCEPTION_MESSAGE_ID,
-                                     "SessionTimeout has occured");
-                new FetchArtifactFactoriesAction().execute(mapping, form, request, response);
+                return sessionExhaustedForward(mapping, form, request, response);
             }
             return super.execute(mapping, form, request, response);
     }

http://dive4elements.wald.intevation.org