com.opensymphony.webwork.dispatcher
Class FlashResult

java.lang.Object
  extended by com.opensymphony.webwork.dispatcher.WebWorkResultSupport
      extended by com.opensymphony.webwork.dispatcher.ServletRedirectResult
          extended by com.opensymphony.webwork.dispatcher.FlashResult
All Implemented Interfaces:
WebWorkStatics, Result, Serializable

public class FlashResult
extends ServletRedirectResult

A flash result, that save the current action into the http session before invoking super.doExecute(...), which actually just do a redirect to a specific location just as a normal ServletRedirectResult would.

  
  
  <action name="store">
        
  

Version:
$Date: 2006-12-11 20:57:12 +0800 (Mon, 11 Dec 2006) $ $Id: FlashResult.java 2758 2006-12-11 12:57:12Z tmjee $
Author:
Patrick Lightbody
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.opensymphony.webwork.dispatcher.ServletRedirectResult
prependServletContext
 
Fields inherited from class com.opensymphony.webwork.dispatcher.WebWorkResultSupport
DEFAULT_PARAM, encode, location, parse
 
Fields inherited from interface com.opensymphony.webwork.WebWorkStatics
HTTP_REQUEST, HTTP_RESPONSE, PAGE_CONTEXT, SERVLET_CONTEXT, SERVLET_DISPATCHER
 
Constructor Summary
FlashResult()
           
 
Method Summary
protected  void doExecute(String finalLocation, ActionInvocation invocation)
          A flash result, that save the current action into the http session before invoking super.doExecute(...).
 String getKey()
          Get the key used to store the current action in http session.
 void setKey(String key)
          Set the key used to store the current action in http session.
 
Methods inherited from class com.opensymphony.webwork.dispatcher.ServletRedirectResult
setPrependServletContext
 
Methods inherited from class com.opensymphony.webwork.dispatcher.WebWorkResultSupport
conditionalParse, execute, setEncode, setLocation, setParse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlashResult

public FlashResult()
Method Detail

doExecute

protected void doExecute(String finalLocation,
                         ActionInvocation invocation)
                  throws Exception
A flash result, that save the current action into the http session before invoking super.doExecute(...).

Overrides:
doExecute in class ServletRedirectResult
Parameters:
finalLocation - the location to redirect to.
invocation - an encapsulation of the action execution state.
Throws:
Exception - if an error occurs when redirecting.
See Also:
ServletRedirectResult.doExecute(java.lang.String, com.opensymphony.xwork.ActionInvocation)

setKey

public void setKey(String key)
Set the key used to store the current action in http session.

Parameters:
key -

getKey

public String getKey()
Get the key used to store the current action in http session.

Returns:
String

WebWork Project Page