com.opensymphony.webwork.dispatcher
Class FlashResult
java.lang.Object
com.opensymphony.webwork.dispatcher.WebWorkResultSupport
com.opensymphony.webwork.dispatcher.ServletRedirectResult
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.
key - The key under which current action is stored in Http Session. Default to
FlashInterceptor.DEFAULT_KEY
which is the string '__flashAction'
<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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlashResult
public FlashResult()
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