com.opensymphony.xwork
Class ActionChainResult

java.lang.Object
  extended by com.opensymphony.xwork.ActionChainResult
All Implemented Interfaces:
Result, Serializable

public class ActionChainResult
extends Object
implements Result

This result invokes an entire other action, complete with it's own interceptor stack and result. This result type takes the following parameters:

Example:

 <package name="public" extends="webwork-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="webwork-default" namespace="/secure">
     <action name="dashboard" class="...">
         <result>dashboard.jsp</result>
     </action>
 </package>
 

Author:
Alexandru Popescu
See Also:
Serialized Form

Field Summary
static String DEFAULT_PARAM
           
 
Constructor Summary
ActionChainResult()
           
 
Method Summary
 boolean equals(Object o)
           
 void execute(ActionInvocation invocation)
          Represents a generic interface for all action execution results, whether that be displaying a webpage, generating an email, sending a JMS message, etc.
 ActionProxy getProxy()
           
 int hashCode()
           
 void setActionName(String actionName)
           
 void setMethod(String method)
           
 void setNamespace(String namespace)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PARAM

public static final String DEFAULT_PARAM
See Also:
Constant Field Values
Constructor Detail

ActionChainResult

public ActionChainResult()
Method Detail

setActionName

public void setActionName(String actionName)

setNamespace

public void setNamespace(String namespace)

setMethod

public void setMethod(String method)

getProxy

public ActionProxy getProxy()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

execute

public void execute(ActionInvocation invocation)
             throws Exception
Description copied from interface: Result
Represents a generic interface for all action execution results, whether that be displaying a webpage, generating an email, sending a JMS message, etc.

Specified by:
execute in interface Result
Parameters:
invocation - the DefaultActionInvocation calling the action call stack
Throws:
Exception

hashCode

public int hashCode()
Overrides:
hashCode in class Object

WebWork Project Page