Class AbstractSelectInput

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

public abstract class AbstractSelectInput extends ActionCommandBase

Select and cache a ForwardConfig that returns us to the input page for the current action, if any.

Version:
$Rev$ $Date: 2005-06-04 10:58:46 -0400 (Sat, 04 Jun 2005) $
  • Constructor Details

    • AbstractSelectInput

      public AbstractSelectInput()
  • Method Details

    • execute_

      protected boolean execute_(ActionContext actionCtx) throws Exception

      Select and cache a ForwardConfig for the input page for the current request.

      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
    • forward

      protected abstract ForwardConfig forward(ActionContext context, ModuleConfig moduleConfig, String uri)

      Create and return a ForwardConfig representing the specified module-relative destination.

      Parameters:
      context - The context for this request
      moduleConfig - The ModuleConfig for this request
      uri - The module-relative URI to be the destination
      Returns:
      ForwardConfig representing destination
    • getErrorMessage

      protected abstract String getErrorMessage(ActionContext context, ActionConfig actionConfig)

      Retrieve error message from context.

      Parameters:
      context - The Context for the current request
      actionConfig - The current action mapping
      Returns:
      error message
    • inputForward

      protected ForwardConfig inputForward(ActionConfig actionConfig, ModuleConfig moduleConfig, String input)
      Attempts to resolve the input as a ForwardConfig attribute. This method should only invoked if the Controller has its inputForward property set to true. If the input parameter is specified, use that, otherwise try to find one in the mapping or the module under the standard conventional input name.
      Parameters:
      actionConfig - the config for the target action
      moduleConfig - the config for the module of the action
      input - the name of the input
      Returns:
      ForwardConfig representing destination
      See Also: