public class CreateAction extends AbstractCreateAction
Concrete implementation of AbstractCreateAction for use in
a Servlet API chain. Expects that the ActionContext passed into it can
safely be cast to ServletActionContext.
| Constructor and Description |
|---|
CreateAction() |
| Modifier and Type | Method and Description |
|---|---|
protected Action |
createAction(ActionContext context,
String type)
Invoked by
getAction when the Action
actually has to be created. |
protected Action |
getAction(ActionContext context,
String type,
ActionConfig actionConfig)
Create and return the appropriate
Action class for the
given type and actionConfig. |
executeexecuteprotected Action getAction(ActionContext context, String type, ActionConfig actionConfig) throws Exception
AbstractCreateAction Create and return the appropriate Action class for the
given type and actionConfig.
NOTE: The dependence on ActionServlet suggests that this should be broken up along the lines of the other Abstract/concrete pairs in the org.apache.struts.chain.commands package.
getAction in class AbstractCreateActioncontext - The Context for this requesttype - Name of class to instantiateactionConfig - The ActionConfig for this requestException - if there are any problems instantiating the Action
class.protected Action createAction(ActionContext context, String type) throws Exception
Invoked by getAction when the Action
actually has to be created. If the instance is already created and
cached, this method will not be called.
context - The Context for this requesttype - Name of class to instantiateException - if there are any problems instantiating the Action
class.Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.