org.apache.turbine.modules.screens.error
Class InvalidState

java.lang.Object
  extended byorg.apache.turbine.modules.Assembler
      extended byorg.apache.turbine.modules.Screen
          extended byorg.apache.turbine.modules.screens.error.InvalidState

public class InvalidState
extends Screen

Users will get this screen if the screen on their browser is in an invalid state. For example, if they hit "Back" or "Reload" and then try to submit old form data. If you want one of your screens to check for invalid state then add a hidden form field called "_session_access_counter" with the value currently stored in the session. The SessionValidator action will check to see if it is an old value and redirect you to this screen.

Version:
$Id: InvalidState.java 534527 2007-05-02 16:10:59Z tv $
Author:
Dave Bryson, Henning P. Schmiedehausen

Constructor Summary
InvalidState()
           
 
Method Summary
 org.apache.ecs.ConcreteElement doBuild(RunData data)
          Build the Screen.
 
Methods inherited from class org.apache.turbine.modules.Screen
build, getLayout, prepareText, prepareTextMinimum, setLayout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvalidState

public InvalidState()
Method Detail

doBuild

public org.apache.ecs.ConcreteElement doBuild(RunData data)
                                       throws java.lang.Exception
Build the Screen.

Specified by:
doBuild in class Screen
Parameters:
data - Turbine information.
Throws:
Exception, - a generic exception.
java.lang.Exception - a generic exception.


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.