Class AbstractExecuteAction

java.lang.Object
org.apache.struts.chain.commands.ActionCommandBase
org.apache.struts.chain.commands.AbstractExecuteAction
All Implemented Interfaces:
org.apache.commons.chain.Command<ActionContext>, ActionCommand
Direct Known Subclasses:
ExecuteAction

public abstract class AbstractExecuteAction extends ActionCommandBase

Invoke the appropriate Action for this request, and cache the returned ActionForward.

Since:
Struts 1.3
Version:
$Rev$
See Also:
  • Constructor Details

    • AbstractExecuteAction

      public AbstractExecuteAction()
  • Method Details

    • execute_

      protected boolean execute_(ActionContext actionCtx) throws Exception

      Invoke the appropriate Action for this request if a dispatcher is not available, and cache the returned ActionForward.

      Specified by:
      execute_ in class ActionCommandBase
      Parameters:
      actionCtx - The Context for the current request
      Returns:
      false so that processing continues
      Throws:
      Exception - if thrown by the Action class
    • execute

      protected abstract ForwardConfig execute(ActionContext context, Action action, ActionConfig actionConfig, ActionForm actionForm) throws Exception

      Execute the specified Action, and return the resulting ForwardConfig.

      Parameters:
      context - The Context for this request
      action - The Action to be executed
      actionConfig - The ActionConfig defining this action
      actionForm - The ActionForm (if any) for this action
      Returns:
      ForwardConfig The next location, or null
      Throws:
      Exception - if thrown by the Action