org.apache.turbine.modules.screens.error

## Class InvalidState

- java.lang.Object
- - org.apache.turbine.modules.Assembler
  - - org.apache.turbine.modules.Screen
    - - org.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 1709648 2015-10-20 17:08:10Z tv $
  Author:
    Dave Bryson, Henning P. Schmiedehausen, Peter Courcoux

- - ### Field Summary

    - ### Fields inherited from class org.apache.turbine.modules.Screen

      `CACHE_SIZE_DEFAULT, CACHE_SIZE_KEY, NAME, PREFIX`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `InvalidState()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `doBuild(PipelineData pipelineData)` Build the Screen.

    - ### Methods inherited from class org.apache.turbine.modules.Screen

      `build, getLayout, getPrefix, setLayout`

    - ### Methods inherited from class org.apache.turbine.modules.Assembler

      `getRunData`

    - ### 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 String doBuild(PipelineData pipelineData)
                         throws Exception

      Build the Screen.
      Specified by:
        `doBuild` in class `Screen`
      Parameters:
        `pipelineData` - Turbine information.
      Returns:
        the content of the screen
      Throws:
        `Exception,` - a generic exception.
        `Exception` - a generic exception.

Copyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.