Package org.apache.struts.chain.commands
Class AbstractSelectInput
java.lang.Object
org.apache.struts.chain.commands.ActionCommandBase
org.apache.struts.chain.commands.AbstractSelectInput
- All Implemented Interfaces:
Command<ActionContext>,ActionCommand
- Direct Known Subclasses:
SelectInput
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) $
-
Field Summary
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanexecute_(ActionContext actionCtx) Select and cache aForwardConfigfor the input page for the current request.protected abstract ForwardConfigforward(ActionContext context, ModuleConfig moduleConfig, String uri) Create and return aForwardConfigrepresenting the specified module-relative destination.protected abstract StringgetErrorMessage(ActionContext context, ActionConfig actionConfig) Retrieve error message from context.protected ForwardConfiginputForward(ActionConfig actionConfig, ModuleConfig moduleConfig, String input) Attempts to resolve the input as aForwardConfigattribute.Methods inherited from class org.apache.struts.chain.commands.ActionCommandBase
execute
-
Constructor Details
-
AbstractSelectInput
public AbstractSelectInput()
-
-
Method Details
-
execute_
Select and cache a
ForwardConfigfor the input page for the current request.- Specified by:
execute_in classActionCommandBase- Parameters:
actionCtx- TheContextfor the current request- Returns:
falseso 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
ForwardConfigrepresenting the specified module-relative destination.- Parameters:
context- The context for this requestmoduleConfig- TheModuleConfigfor this requesturi- The module-relative URI to be the destination- Returns:
- ForwardConfig representing destination
-
getErrorMessage
Retrieve error message from context.
- Parameters:
context- TheContextfor the current requestactionConfig- The current action mapping- Returns:
- error message
-
inputForward
protected ForwardConfig inputForward(ActionConfig actionConfig, ModuleConfig moduleConfig, String input) Attempts to resolve the input as aForwardConfigattribute. This method should only invoked if the Controller has itsinputForwardproperty set totrue. If the input parameter is specified, use that, otherwise try to find one in the mapping or the module under the standard conventionalinputname.- Parameters:
actionConfig- the config for the target actionmoduleConfig- the config for the module of the actioninput- the name of the input- Returns:
- ForwardConfig representing destination
- See Also:
-