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:
org.apache.commons.chain.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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
execute_
(ActionContext actionCtx) Select and cache aForwardConfig
for the input page for the current request.protected abstract ForwardConfig
forward
(ActionContext context, ModuleConfig moduleConfig, String uri) Create and return aForwardConfig
representing the specified module-relative destination.protected abstract String
getErrorMessage
(ActionContext context, ActionConfig actionConfig) Retrieve error message from context.protected ForwardConfig
inputForward
(ActionConfig actionConfig, ModuleConfig moduleConfig, String input) Attempts to resolve the input as aForwardConfig
attribute.Methods inherited from class org.apache.struts.chain.commands.ActionCommandBase
execute
-
Constructor Details
-
AbstractSelectInput
public AbstractSelectInput()
-
-
Method Details
-
execute_
Select and cache a
ForwardConfig
for the input page for the current request.- Specified by:
execute_
in classActionCommandBase
- Parameters:
actionCtx
- TheContext
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 requestmoduleConfig
- TheModuleConfig
for this requesturi
- The module-relative URI to be the destination- Returns:
- ForwardConfig representing destination
-
getErrorMessage
Retrieve error message from context.
- Parameters:
context
- TheContext
for 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 aForwardConfig
attribute. This method should only invoked if the Controller has itsinputForward
property set totrue
. If the input parameter is specified, use that, otherwise try to find one in the mapping or the module under the standard conventionalinput
name.- 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:
-