Home » Struts-1.3.10 » org.apache.struts » chain » legacy » [javadoc | source]
org.apache.struts.chain.legacy
public class: DispatchAction [javadoc | source]
java.lang.Object
   org.apache.struts.action.Action
      org.apache.struts.chain.legacy.DispatchAction

An Action implementation that delegates to a Chain (or Command) that is specified by a request parameter whose name is configured in the parameter attribute of the <action> element configuring this action. For example:

  <action path="/myaction"
          type="org.apache.struts.chain.legacy.DispatchAction"
          name="myform"
         scope="request"
         input="/mypage.jsp"
     parameter="name-of-request-parameter"

Prior to calling the specified chain (or command), this action sets up a Context object containing the relevant properties, along with the following additional attributes:

After execution of the specified command or chain is completed, the following context attributes are examined (in this order) to determine how to proceed.

Method from org.apache.struts.chain.legacy.DispatchAction Summary:
execute,   getCatalog
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.struts.chain.legacy.DispatchAction Detail:
 public ActionForward execute(ActionMapping mapping,
    ActionForm form,
    HttpServletRequest request,
    HttpServletResponse response) throws Exception 

    Delegate to the command chain specified in our configuration.

 protected Catalog getCatalog() 

    Return the Catalog we will use to acquire the Command to be executed. NOTE: Any race condition calling this method is harmless, so do not bother to synchronize.