|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.xwork2.ActionChainResult
public class ActionChainResult
This result invokes an entire other action, complete with it's own interceptor stack and result. This result type takes the following parameters:
<package name="public" extends="struts-default">
<!-- Chain creatAccount to login, using the default parameter -->
<action name="createAccount" class="...">
<result type="chain">login</result>
</action>
<action name="login" class="...">
<!-- Chain to another namespace -->
<result type="chain">
<param name="actionName">dashboard</param>
<param name="namespace">/secure</param>
</result>
</action>
</package>
<package name="secure" extends="struts-default" namespace="/secure">
<action name="dashboard" class="...">
<result>dashboard.jsp</result>
</action>
</package>
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_PARAM
The result parameter name to set the name of the action to chain to. |
static java.lang.String |
SKIP_ACTIONS_PARAM
The result parameter name to set the name of the action to chain to. |
| Constructor Summary | |
|---|---|
ActionChainResult()
|
|
ActionChainResult(java.lang.String namespace,
java.lang.String actionName,
java.lang.String methodName)
|
|
ActionChainResult(java.lang.String namespace,
java.lang.String actionName,
java.lang.String methodName,
java.lang.String skipActions)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
void |
execute(ActionInvocation invocation)
Represents a generic interface for all action execution results. |
static java.util.LinkedList<java.lang.String> |
getChainHistory()
Get the XWork chain history. |
ActionProxy |
getProxy()
|
int |
hashCode()
|
void |
setActionName(java.lang.String actionName)
Set the action name. |
void |
setActionProxyFactory(ActionProxyFactory actionProxyFactory)
|
void |
setMethod(java.lang.String method)
|
void |
setNamespace(java.lang.String namespace)
sets the namespace of the Action that we're chaining to. |
void |
setSkipActions(java.lang.String actions)
Set the list of actions to skip. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_PARAM
public static final java.lang.String SKIP_ACTIONS_PARAM
| Constructor Detail |
|---|
public ActionChainResult()
public ActionChainResult(java.lang.String namespace,
java.lang.String actionName,
java.lang.String methodName)
public ActionChainResult(java.lang.String namespace,
java.lang.String actionName,
java.lang.String methodName,
java.lang.String skipActions)
| Method Detail |
|---|
public void setActionProxyFactory(ActionProxyFactory actionProxyFactory)
actionProxyFactory - the actionProxyFactory to setpublic void setActionName(java.lang.String actionName)
actionName - The action name.public void setNamespace(java.lang.String namespace)
namespace - the name of the namespace we're chaining topublic void setSkipActions(java.lang.String actions)
actions - The list of action name separated by a white space.public void setMethod(java.lang.String method)
public ActionProxy getProxy()
public static java.util.LinkedList<java.lang.String> getChainHistory()
namespace/action!method keys.
public void execute(ActionInvocation invocation)
throws java.lang.Exception
Result
execute in interface Resultinvocation - the DefaultActionInvocation calling the action call stack
java.lang.Exception - can be thrown.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||