Class AbstractSelectModule

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

public abstract class AbstractSelectModule extends ActionCommandBase

Cache the ModuleConfig and MessageResources instances for the sub-application module to be used for processing this request.

Version:
$Rev$ $Date: 2005-11-12 13:01:44 -0500 (Sat, 12 Nov 2005) $
  • Constructor Details

    • AbstractSelectModule

      public AbstractSelectModule()
  • Method Details

    • execute_

      protected boolean execute_(ActionContext actionCtx) throws Exception

      Cache the ModuleConfig and MessageResources instances for the sub-application module to be used for processing this request.

      Specified by:
      execute_ in class ActionCommandBase
      Parameters:
      actionCtx - The Context for the current request
      Returns:
      false so that processing continues
      Throws:
      IllegalArgumentException - if no valid ModuleConfig or MessageResources can be identified for this request
      Exception - if thrown by the Action class
    • getPrefix

      protected abstract String getPrefix(ActionContext context)

      Calculate and return the module prefix for the module to be selected for this request.

      Parameters:
      context - The Context for this request
      Returns:
      Module prefix to be used with this request
      Throws:
      IllegalArgumentException - if no valid ModuleConfig or MessageResources can be identified for this request