org.apache.struts.chain.commands
Class AbstractSelectAction

java.lang.Object
  extended by org.apache.struts.chain.commands.ActionCommandBase
      extended by org.apache.struts.chain.commands.AbstractSelectAction
All Implemented Interfaces:
org.apache.commons.chain.Command, ActionCommand
Direct Known Subclasses:
SelectAction

public abstract class AbstractSelectAction
extends ActionCommandBase

Cache the ActionConfig instance for the action to be used for processing this request.

Version:
$Rev: 471754 $ $Date: 2005-11-05 21:44:59 -0500 (Sat, 05 Nov 2005) $

Field Summary
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
AbstractSelectAction()
           
 
Method Summary
 boolean execute(ActionContext actionCtx)
          Cache the ActionConfig instance for the action to be used for processing this request.
protected abstract  java.lang.String getPath(ActionContext context)
          Return the path to be used to select the ActionConfig for this request.
 
Methods inherited from class org.apache.struts.chain.commands.ActionCommandBase
execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSelectAction

public AbstractSelectAction()
Method Detail

execute

public boolean execute(ActionContext actionCtx)
                throws java.lang.Exception

Cache the ActionConfig instance for the action to be used for processing this request.

Specified by:
execute in interface ActionCommand
Specified by:
execute in class ActionCommandBase
Parameters:
actionCtx - The Context for the current request
Returns:
false so that processing continues
Throws:
InvalidPathException - if no valid action can be identified for this request
java.lang.Exception - if thrown by the Action class

getPath

protected abstract java.lang.String getPath(ActionContext context)

Return the path to be used to select the ActionConfig for this request.

Parameters:
context - The Context for this request
Returns:
Path to be used to select the ActionConfig


Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.