All Classes and Interfaces
Class
Description
Determine whether the requested action is authorized for the current
user.
Create (if necessary) and cache an
Action
for this
request.This abstract class is the stock template for
Dispatcher
implementations.This abstract class is a template for choosing the target method that is
named in the list-encoded
parameter
attribute of the
ActionMapping
that matches a submission parameter.Invoke the local or global exception handler configured for the
exception class that occurred.
Invoke the appropriate
Action
for this request, and cache
the returned ActionForward
.This abstract class is a template for choosing the target method that is
named by the
parameter
attribute of the corresponding
ActionMapping
.This abstract class is the stock template for resolving methods for a
Dispatcher
.This abstract class is a template for choosing the target method that is
identified by a submission parameter.
Perform forwarding or redirection based on the specified
ForwardConfig
(if any).Perform forwarding or redirection based on the specified
String
(if any).Populate the form bean (if any) for this request.
Check to see if the controller is configured to prevent caching, and if
so, request no cache flags to be set.
Cache the
ActionConfig
instance for the action to be used
for processing this request.Select and cache the
ActionForward
for this
ActionConfig
if specified.Select and cache a
ForwardConfig
that returns us to the
input page for the current action, if any.Select the
Locale
to be used for this request.Cache the
ModuleConfig
and MessageResources
instances for the sub-application module to be used for processing this
request.Check to see if the content type is set, and if so, set it for this
response.
Check to original uri is set, and if not, set it for this request.
Validate the properties of the form bean for this request.
An Action is an adapter between the contents of an
incoming HTTP request and the corresponding business logic that should be
executed to process this request.
Marks a commons-chain
Command
which expects to operate upon a Struts
ActionContext
.Simple abstract class which logs the
ActionCommand
-class when
executed.A JavaBean representing the configuration information of an
<action>
element from a Struts module configuration
file. Matches paths against pre-compiled wildcard expressions pulled from
action configs.
An ActionContext represents a view of a commons-chain
Context
which encapsulates access to request and
session-scoped resources and services Provide an abstract but semi-complete implementation of ActionContext
to serve as the base for concrete implementations.
A class that encapsulates the error messages being reported by the
validate()
method of an ActionForm
.An ActionForm is a JavaBean optionally associated with
one or more
ActionMappings
.An ActionFormBean is the definition of a form bean that
is loaded from a
<form-bean>
element in the Struts
configuration file.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.
An ActionMapping represents the information that the
controller,
RequestProcessor
, knows about the mapping of a
particular request to an instance of a particular Action
class.An encapsulation of an individual message returned by the
validate
method of an ActionForm
, consisting of a
message key (to be used to look up message text in an appropriate message
resources database) plus up to four placeholder objects that can be used
for parametric replacement in the message text.A class that encapsulates messages.
Performs post-processing functions in command chain
A subclass of
ActionForward
which is designed for use in
redirecting requests, with support for adding parameters at runtime.ActionServlet provides the "controller" in the
Model-View-Controller (MVC) design pattern for web applications that is
commonly known as "Model 2".
Provide a wrapper around an
ActionServlet
to expose only those
methods needed by other objects.Determine if the action is authorized for the given roles.
A abstract base class for all config classes.
Struts validator
ActionForm
backed by either a
DynaBean
or POJO JavaBean.Copies any
ActionMessages
from the request to the session if a
redirecting forward is selected and the messages were not accessed.Utility methods to load application classes and create instances.
This class implements the
MultipartRequestHandler
interface by
providing a wrapper around the Jakarta Commons FileUpload library.ComposableRequestProcessor uses the Chain Of Responsibility design pattern
(as implemented by the commons-chain package in Jakarta Commons) to support
external configuration of command chains to be used.
NOTE: THIS CLASS IS UNDER ACTIVE DEVELOPMENT.
NOTE: THIS CLASS IS UNDER ACTIVE DEVELOPMENT.
The set of Digester rules required to parse a Struts configuration file
(
struts-config.xml
).Global constants for the Chain of Responsibility Library.
This class provides a central location for framework configuration keys
used to retrieve and store Struts configuration settings.
Provide a base class for any Context Implementation which is primarily
intended for use in a subchain.
A JavaBean representing the configuration information of a
<controller>
element in a Struts configuration file.Subclass this command and configure it as part of a per-forward chain to
perform any necessary pre-population or other preparation for a form before
control is dispatched to the view layer.
Concrete implementation of
AbstractCreateAction
for use in
a Servlet API chain.Create (if necessary) and cache a form bean for this request.
A factory for creating
ModuleConfig
instances.This interface defines an intermediate handler that determines what method to
execute in an
Action
.Specialized subclass of
ActionForm
that allows the creation
of form beans with dynamic sets of properties, without requiring the
developer to create a Java class for each type of form bean.Implementation of
DynaClass
for DynaActionForm
classes that allow developers to define ActionForms without having to
individually code all of the classes.This class extends DynaActionForm and provides basic
field validation based on an XML file.
Intercept any exception thrown by a subsequent
Command
in this
processing chain, and fire the configured exception handler chain after
storing the exception that has occurred into the Context
.A JavaBean representing the configuration information of an
<exception>
element from a Struts configuration
file.An ExceptionHandler is configured in the Struts
configuration file to handle a specific type of exception thrown by an
Action.execute
method.Handle the specified exception.
Invoke the appropriate
Action
for this request, and cache
the returned ActionForward
.Invoke the appropriate
Command
for this request.Look up and execute a commons-chain
Command
based on properties of
the ActionContext's forwardConfig
property. This class contains the default validations that are used in the
validator-rules.xml file.
A JavaBean representing the configuration information of a
<form-bean>
element in a Struts configuration file.This interface represents a file that has been uploaded by a client.
A JavaBean representing the configuration information of a
<form-property>
element in a Struts configuration
file.A JavaBean representing the configuration information of a
<forward>
element from a Struts configuration file.A subclass of
ActionForward
that defaults the
redirect
attribute to false
.Global manifest constants for the entire Struts Framework.
A simple JavaBean to encapsulate the request parameters sent for an HTML
input element of type image.
Thrown when a token generated by the Cancel tag is found in the
request, but the cancellable property for the Action Mapping is not set.
Exception thrown when no mapping can be found for the specified
path.
Utility method for converting Enumeration to an Iterator class.
A simple JavaBean to represent label-value pairs.
Struts Lazy
ActionForm
which wraps a
LazyDynaBean
.General purpose abstract class that describes an API for retrieving
Locale-sensitive messages from underlying resource locations of an
unspecified design, and optionally utilizing the
MessageFormat
class to produce internationalized messages with parametric replacement.A JavaBean representing the configuration information of a
<message-resources>
element in a Struts configuration
file.Factory for
MessageResources
instances.This interface defines a pluggable strategy for resolving a method and
extracting its methods from an
ActionContext
. Implement
ActionContext
with empty maps for
applicationScope
, sessionScope
,
requestScope
, and parameterMap
properties.The collection of static configuration information that describes a
Struts-based module.
A factory interface for creating
ModuleConfig
s.The collection of static configuration information that describes a
Struts-based module.
This interface is to be implemented by any plugin for custom modification of
a module after it is been configured but before it is frozen.
Used for specialized exception handling.
General purpose utility methods related to module processing.
MultipartRequestHandler provides an standard interface for struts to deal
with file uploads from forms with enctypes of "multipart/form-data".
This class functions as a wrapper around HttpServletRequest to provide
working getParameter methods for multipart requests.
Perform forwarding or redirection based on the specified
ForwardConfig
(if any).Perform forwarding or redirection based on the specified include uri (if
any).
A PlugIn is a configuration wrapper for a
module-specific resource or service that needs to be notified about
application startup and application shutdown events (corresponding to when
the container calls
init
and destroy
on the
corresponding ActionServlet
instance).A JavaBean representing the configuration information of a
<plug-in>
element in a Struts configuration file.Populate the form bean (if any) for this request.
Constants relating to the reset and population events of action forms.
Concrete subclass of
MessageResources
that reads message keys
and corresponding strings from named property resources in a similar manner
(see modes below) that java.util.PropertyResourceBundle
does.Factory for
PropertyMessageResources
instances.A subclass of ActionForward that defaults the
redirect
attribute to true
.Remove cached messages stored in the session.
Subclass of
ActionMapping
that defaults the form bean scope
to request
.Check to see if the controller is configured to prevent caching, and if
so, set the no cache HTTP response headers.
RequestProcessor contains the processing logic that the
ActionServlet
performs as it receives each servlet request from the
container.General purpose utility methods related to processing a servlet request
in the Struts controller framework.
This class helps provides some useful methods for retrieving objects from
different scopes of the application.
General purpose utility methods related to generating a servlet response in
the Struts controller framework.
Cache the
ActionConfig
instance for the action to be used
for processing this request.Create and return a
ForwardConfig
representing the
specified module-relative destination.Select and cache the include for this
ActionConfig
if
specified.Validate the properties of the form bean for this request.
Select the
Locale
to be used for this request.Cache the
ModuleConfig
and MessageResources
instances for the sub-application module to be used for processing this
request.Implement ActionContext interface while making Servlet API-specific values
available.
A PrintWriter implementation that uses the logging facilities of a
jakarta.servlet.ServletContext
to output its results.This servlet-based dispatcher chooses the target method based on the
parameter
attribute of the ActionMapping
that matches
a submission parameter.This servlet-based dispatcher uses the configuration value of the
parameter
attribute from the corresponding
ActionMapping
to pick the appropriate method
on the action.This class helps resolve methods with servlet-based signatures.
This servlet-based dispatcher uses the value of the request parameter to pick
the appropriate method on the action.
Subclass of
ActionMapping
that defaults the form bean scope
to session
.Check to see if the content type is set, and if so, set it for this
response.
Set the servlet path.
TokenProcessor is responsible for handling all token related functionality.
Exception thrown when the chosen action mapping is not authorized for
the current request.
Validate the properties of the form bean for this request.
This class extends ActionForm and provides basic field
validation based on an XML file.
Loads
ValidatorResources
based on configuration in the
struts-config.xml file.This class contains the validwhen validation that is used in the
validator-rules.xml file.
This class provides an empty implementation of
ValidWhenVisitor
,
which can be extended to create a visitor which only needs to handle a subset
of the available methods.Enum for comparing two values.
Visitor to process the evalution.
Holds the (interim) result during processing the parsing-tree.
Holds the (interim) result during processing the parsing-tree.
Holds the (interim) result during processing the parsing-tree.
Holds the (interim) result during processing the parsing-tree.
Holds the (interim) result during processing the parsing-tree.
This interface defines a complete generic visitor for a parse tree produced
by
ValidWhenParser
.Provide a Subclass of ActionContextBase which is understood to be wrapping
an instance of
WebContext
.This class is an utility class that perform wilcard-patterns matching and
isolation taken from Apache Cocoon.
Variant on chain LookupCommand which can optionally wrap the context it
passes to the looked up command in an alternative class.