Uses of Class
org.apache.struts.action.ActionMapping
Package
Description
The action package is the core of the struts framework,
providing the "Controller" aspect of a MVC model.
The "config" package contains configuration objects that correspond to
elements that may be specified in the
struts-config.xml
module configuration file.The upload package facilities to upload files using
multi-part requests.
The Utilities package provides a variety of families of classes,
to solve problems that are commonly encountered in building web applications.
The validator package provides a series of classes to validate
ActionForm
type of input.-
Uses of ActionMapping in org.apache.struts.action
Modifier and TypeClassDescriptionclass
Subclass ofActionMapping
that defaults the form bean scope torequest
.class
Subclass ofActionMapping
that defaults the form bean scope tosession
.Modifier and TypeMethodDescriptionprotected ActionMapping
RequestProcessor.processMapping
(HttpServletRequest request, HttpServletResponse response, String path) Select the mapping used to process the selection path for this request.Modifier and TypeMethodDescriptionAction.execute
(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) Process the specified HTTP request, and create the corresponding HTTP response (or forward to another web component that will create it), with provision for handling exceptions thrown by the business logic.Action.execute
(ActionMapping mapping, ActionForm form, ServletRequest request, ServletResponse response) Process the specified non-HTTP request, and create the corresponding non-HTTP response (or forward to another web component that will create it), with provision for handling exceptions thrown by the business logic.ExceptionHandler.execute
(Exception ex, ExceptionConfig ae, ActionMapping mapping, ActionForm formInstance, HttpServletRequest request, HttpServletResponse response) Handle the Exception.protected void
ExceptionHandler.handleCommittedResponse
(Exception ex, ExceptionConfig config, ActionMapping mapping, ActionForm formInstance, HttpServletRequest request, HttpServletResponse response, ActionForward actionForward) Attempt to give good information when the response has already been committed when the exception was thrown.void
DynaActionForm.initialize
(ActionMapping mapping) Initialize all bean properties to their initial values, as specified in theFormPropertyConfig
elements associated with the definition of thisDynaActionForm
.protected Action
RequestProcessor.processActionCreate
(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) Return anAction
instance that will be used to process the current request, creating a new one if necessary.protected ActionForm
RequestProcessor.processActionForm
(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) Retrieve and return theActionForm
associated with this mapping, creating and retaining one if necessary.protected ActionForward
RequestProcessor.processActionPerform
(HttpServletRequest request, HttpServletResponse response, Action action, ActionForm form, ActionMapping mapping) Ask the specifiedAction
instance to handle this request.protected ActionForward
RequestProcessor.processException
(HttpServletRequest request, HttpServletResponse response, Exception exception, ActionForm form, ActionMapping mapping) Ask our exception handler to handle the exception.protected boolean
RequestProcessor.processForward
(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) Process a forward requested by this mapping (if any).protected boolean
RequestProcessor.processInclude
(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) Process an include requested by this mapping (if any).protected void
RequestProcessor.processPopulate
(HttpServletRequest request, HttpServletResponse response, ActionForm form, ActionMapping mapping) Populate the properties of the specifiedActionForm
instance from the request parameters included with this request.protected boolean
RequestProcessor.processRoles
(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) If this action is protected by security roles, make sure that the current user possesses at least one of them.protected boolean
RequestProcessor.processValidate
(HttpServletRequest request, HttpServletResponse response, ActionForm form, ActionMapping mapping) If this request was not cancelled, and the request'sActionMapping
has not disabled validation, call thevalidate
method of the specifiedActionForm
, and forward to the input path if there were any errors.void
ActionForm.reset
(ActionMapping mapping, HttpServletRequest request) Can be used to reset bean properties to their default state, as needed.void
ActionForm.reset
(ActionMapping mapping, ServletRequest request) Can be used to reset all bean properties to their default state.void
DynaActionForm.reset
(ActionMapping mapping, HttpServletRequest request) Reset the properties to theirinitial
value if theirreset
configuration is set to true or ifreset
is set to a list of HTTP request methods that includes the method of givenrequest
object.void
DynaActionForm.reset
(ActionMapping mapping, ServletRequest request) Reset bean properties to their default state, as needed.ActionForm.validate
(ActionMapping mapping, HttpServletRequest request) Can be used to validate the properties that have been set for this HTTP request, and return anActionErrors
object that encapsulates any validation errors that have been found.ActionForm.validate
(ActionMapping mapping, ServletRequest request) Can be used to validate the properties that have been set for this non-HTTP request, and return anActionErrors
object that encapsulates any validation errors that have been found. -
Uses of ActionMapping in org.apache.struts.config
Modifier and TypeMethodDescriptionConfigHelper.getActionMapping
(String path) Return the mapping associated with the specified request path, if any; otherwise returnnull
.ConfigHelperInterface.getActionMapping
(String path) Return the mapping associated with the specified request path, if any; otherwise returnnull
.ConfigHelper.getMapping()
Theorg.apache.struts.ActionMapping
instance for this request.ConfigHelperInterface.getMapping()
Theorg.apache.struts.ActionMapping
instance for this request. -
Uses of ActionMapping in org.apache.struts.upload
Modifier and TypeMethodDescriptionCommonsMultipartRequestHandler.getMapping()
Retrieves the action mapping with which this handler is associated.MultipartRequestHandler.getMapping()
Get the ActionMapping instance for this request.Modifier and TypeMethodDescriptionvoid
CommonsMultipartRequestHandler.setMapping
(ActionMapping mapping) Sets the action mapping with which this handler is associated.void
MultipartRequestHandler.setMapping
(ActionMapping mapping) Convenience method to set a reference to a working ActionMapping instance. -
Uses of ActionMapping in org.apache.struts.util
Modifier and TypeMethodDescriptionstatic ActionForm
RequestUtils.createActionForm
(HttpServletRequest request, ActionMapping mapping, ModuleConfig moduleConfig, ActionServlet servlet) Create (if necessary) and return anActionForm
instance appropriate for this request. -
Uses of ActionMapping in org.apache.struts.validator
Modifier and TypeMethodDescriptionprotected int
DynaValidatorForm.determinePage
(ActionMapping mapping, HttpServletRequest request) Determine validation page.
If acceptPage of ActionMapping is null, then returns Integer.MAX_VALUE.protected int
ValidatorForm.determinePage
(ActionMapping mapping, HttpServletRequest request) Determine validation page.
If acceptPage of ActionMapping is null, then returns Integer.MAX_VALUE.BeanValidatorForm.getValidationKey
(ActionMapping mapping, HttpServletRequest request) Returns the Validation keyDynaValidatorForm.getValidationKey
(ActionMapping mapping, HttpServletRequest request) Returns the Validation key.ValidatorForm.getValidationKey
(ActionMapping mapping, HttpServletRequest request) Returns the Validation key.void
DynaValidatorForm.reset
(ActionMapping mapping, HttpServletRequest request) Reset all properties to their default values.void
ValidatorForm.reset
(ActionMapping mapping, HttpServletRequest request) Reset all properties to their default values.DynaValidatorForm.validate
(ActionMapping mapping, HttpServletRequest request) Validate the properties that have been set from this HTTP request, and return anActionErrors
object that encapsulates any validation errors that have been found.ValidatorForm.validate
(ActionMapping mapping, HttpServletRequest request) Validate the properties that have been set from this HTTP request, and return anActionErrors
object that encapsulates any validation errors that have been found.