public class ActionChainResult extends Object implements Result
 <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>
 | Modifier and Type | Field and Description | 
|---|---|
static String | 
DEFAULT_PARAM
The result parameter name to set the name of the action to chain to. 
 | 
static String | 
SKIP_ACTIONS_PARAM
The result parameter name to set the name of the action to chain to. 
 | 
| Constructor and Description | 
|---|
ActionChainResult()  | 
ActionChainResult(String namespace,
                 String actionName,
                 String methodName)  | 
ActionChainResult(String namespace,
                 String actionName,
                 String methodName,
                 String skipActions)  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object o)  | 
void | 
execute(ActionInvocation invocation)
Represents a generic interface for all action execution results. 
 | 
static LinkedList<String> | 
getChainHistory()
Get the XWork chain history. 
 | 
ActionProxy | 
getProxy()  | 
int | 
hashCode()  | 
void | 
setActionName(String actionName)
Set the action name. 
 | 
void | 
setActionProxyFactory(ActionProxyFactory actionProxyFactory)  | 
void | 
setMethod(String method)  | 
void | 
setNamespace(String namespace)
sets the namespace of the Action that we're chaining to. 
 | 
void | 
setSkipActions(String actions)
Set the list of actions to skip. 
 | 
public static final String DEFAULT_PARAM
public static final String SKIP_ACTIONS_PARAM
public void setActionProxyFactory(ActionProxyFactory actionProxyFactory)
actionProxyFactory - the actionProxyFactory to setpublic void setActionName(String actionName)
actionName - The action name.public void setNamespace(String namespace)
namespace - the name of the namespace we're chaining topublic void setSkipActions(String actions)
actions - The list of action name separated by a white space.public void setMethod(String method)
public ActionProxy getProxy()
public static LinkedList<String> getChainHistory()
namespace/action!method keys.public void execute(ActionInvocation invocation) throws Exception
ResultCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.