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, com.opensymphony.xwork.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$ $Id$
- Author:
- Patrick Lightbody
- See Also:
- Serialized Form
|
Method Summary |
protected void |
doExecute(String finalLocation,
com.opensymphony.xwork.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,
com.opensymphony.xwork.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
Copyright © 2013 OpenSymphony. All Rights Reserved.