Uses of Class
org.apache.struts.config.ForwardConfig
Package
Description
The action package is the core of the struts framework,
providing the "Controller" aspect of a MVC model.
Configurable commands that may be placed within the
request processor.
Commands which are particular to servlet processing.
This package provides objects that encapsulate access to
the request and session-scoped resources to service
command processing.
The "config" package contains configuration objects that correspond to
elements that may be specified in the
struts-config.xml
module configuration file.Provides default implementation classes for the
configuration objects.
The Utilities package provides a variety of families of classes,
to solve problems that are commonly encountered in building web applications.
-
Uses of ForwardConfig in org.apache.struts.action
Modifier and TypeClassDescriptionclass
An ActionForward represents a destination to which the controller, RequestProcessor, might be directed to perform a RequestDispatcher.forward or HttpServletResponse.sendRedirect to, as a result of processing activities of an Action class.class
A subclass ofActionForward
which is designed for use in redirecting requests, with support for adding parameters at runtime.class
A subclass ofActionForward
that defaults theredirect
attribute tofalse
.class
A subclass of ActionForward that defaults theredirect
attribute totrue
.Modifier and TypeMethodDescriptionprotected ForwardConfig
ActionServlet.processForwardConfigClass
(ForwardConfig forwardConfig, ModuleConfig moduleConfig, ActionConfig actionConfig) Checks if the current forwardConfig is using the correct class based on the class of its configuration ancestor.Modifier and TypeMethodDescriptionprotected void
RequestProcessor.processForwardConfig
(HttpServletRequest request, HttpServletResponse response, ForwardConfig forward) Forward or redirect to the specified destination, by the specified mechanism.protected ForwardConfig
ActionServlet.processForwardConfigClass
(ForwardConfig forwardConfig, ModuleConfig moduleConfig, ActionConfig actionConfig) Checks if the current forwardConfig is using the correct class based on the class of its configuration ancestor.protected void
ActionServlet.processForwardExtension
(ForwardConfig forwardConfig, ModuleConfig moduleConfig, ActionConfig actionConfig) Extend the forward's configuration as necessary.ModifierConstructorDescriptionActionRedirect
(ForwardConfig baseConfig) Construct a new instance with aForwardConfig
object to copy name, path, contextRelative, and arbitrary property values from. -
Uses of ForwardConfig in org.apache.struts.chain.commands
Modifier and TypeMethodDescriptionprotected abstract ForwardConfig
AbstractExecuteAction.execute
(ActionContext context, Action action, ActionConfig actionConfig, ActionForm actionForm) Execute the specifiedAction
, and return the resultingForwardConfig
.protected abstract ForwardConfig
AbstractSelectForward.forward
(ActionContext context, ModuleConfig moduleConfig, String uri) Create and return aForwardConfig
representing the specified module-relative destination.protected abstract ForwardConfig
AbstractSelectInput.forward
(ActionContext context, ModuleConfig moduleConfig, String uri) Create and return aForwardConfig
representing the specified module-relative destination.protected abstract ForwardConfig
AbstractExceptionHandler.handle
(ActionContext context, Exception exception, ExceptionConfig exceptionConfig, ActionConfig actionConfig, ModuleConfig moduleConfig) Perform the required handling of the specified exception.protected ForwardConfig
AbstractSelectInput.inputForward
(ActionConfig actionConfig, ModuleConfig moduleConfig, String input) Attempts to resolve the input as aForwardConfig
attribute.Modifier and TypeMethodDescriptionprotected abstract void
AbstractPerformForward.perform
(ActionContext context, ForwardConfig forwardConfig) Perform the appropriate processing on the specifiedForwardConfig
. -
Uses of ForwardConfig in org.apache.struts.chain.commands.servlet
Modifier and TypeMethodDescriptionprotected ForwardConfig
ExecuteAction.execute
(ActionContext context, Action action, ActionConfig actionConfig, ActionForm actionForm) Execute the specifiedAction
, and return the resultingActionForward
.protected ForwardConfig
SelectForward.forward
(ActionContext context, ModuleConfig moduleConfig, String uri) Create and return aForwardConfig
representing the specified module-relative destination.protected ForwardConfig
SelectInput.forward
(ActionContext context, ModuleConfig moduleConfig, String uri) Create and return aForwardConfig
representing the specified module-relative destination.protected ForwardConfig
ExceptionHandler.handle
(ActionContext context, Exception exception, ExceptionConfig exceptionConfig, ActionConfig actionConfig, ModuleConfig moduleConfig) Modifier and TypeMethodDescriptionprotected void
PerformForward.perform
(ActionContext context, ForwardConfig forwardConfig) Perform the appropriate processing on the specifiedForwardConfig
. -
Uses of ForwardConfig in org.apache.struts.chain.contexts
Modifier and TypeMethodDescriptionActionContext.getForwardConfig()
Get the ForwardConfig which has been identified as the basis for view-processing.ActionContextBase.getForwardConfig()
Modifier and TypeMethodDescriptionvoid
ActionContext.setForwardConfig
(ForwardConfig forward) Set the ForwardConfig which should be used as the basis of the view segment of the overall processing.void
ActionContextBase.setForwardConfig
(ForwardConfig forward) -
Uses of ForwardConfig in org.apache.struts.config
Modifier and TypeFieldDescriptionprotected HashMap
<String, ForwardConfig> ActionConfig.forwards
The set of local forward configurations for this action, if any, keyed by thename
property.Modifier and TypeMethodDescriptionActionConfig.findForwardConfig
(String name) Return the forward configuration for the specified key, if any; otherwise returnnull
.ModuleConfig.findForwardConfig
(String name) Return the forward configuration for the specified key, if any; otherwise returnnull
.ActionConfig.findForwardConfigs()
Return all forward configurations for this module.ModuleConfig.findForwardConfigs()
Return the form bean configurations for this module.Modifier and TypeMethodDescriptionvoid
ActionConfig.addForwardConfig
(ForwardConfig config) Add a newForwardConfig
instance to the set of global forwards associated with this action.void
ModuleConfig.addForwardConfig
(ForwardConfig config) Add a newForwardConfig
instance to the set of global forwards associated with this module.void
ForwardConfig.inheritFrom
(ForwardConfig config) Inherit values that have not been overridden from the provided config object.void
ActionConfig.removeForwardConfig
(ForwardConfig config) Remove the specified forward configuration instance.void
ModuleConfig.removeForwardConfig
(ForwardConfig config) Remove the specified forward configuration instance.ModifierConstructorDescriptionForwardConfig
(ForwardConfig copyMe) Construct a new instance based on the values of another ForwardConfig. -
Uses of ForwardConfig in org.apache.struts.config.impl
Modifier and TypeFieldDescriptionprotected HashMap
<String, ForwardConfig> ModuleConfigImpl.forwards
The set of global forward configurations for this module, if any, keyed by thename
property.Modifier and TypeMethodDescriptionModuleConfigImpl.findForwardConfig
(String name) Return the forward configuration for the specified key, if any; otherwise returnnull
.ModuleConfigImpl.findForwardConfigs()
Return the form bean configurations for this module.Modifier and TypeMethodDescriptionvoid
ModuleConfigImpl.addForwardConfig
(ForwardConfig config) Add a newForwardConfig
instance to the set of global forwards associated with this module.void
ModuleConfigImpl.removeForwardConfig
(ForwardConfig config) Remove the specified forward configuration instance. -
Uses of ForwardConfig in org.apache.struts.util
Modifier and TypeMethodDescriptionstatic String
RequestUtils.actionIdURL
(ForwardConfig forward, HttpServletRequest request, ActionServlet servlet) Returns the true path of the destination action if the specified forward is an action-aliased URL.static String
RequestUtils.forwardURL
(HttpServletRequest request, ForwardConfig forward) Return the context-relative URL that corresponds to the specifiedForwardConfig
.static String
RequestUtils.forwardURL
(HttpServletRequest request, ForwardConfig forward, ModuleConfig moduleConfig) Return the context-relative URL that corresponds to the specifiedForwardConfig
.