Class ActionErrors
- All Implemented Interfaces:
Serializable
A class that encapsulates the error messages being reported by the
validate()
method of an ActionForm
. Validation
errors are either global to the entire ActionForm
bean they
are associated with, or they are specific to a particular bean property
(and, therefore, a particular input field on the corresponding form).
Each individual error is described by an ActionMessage
object, which contains a message key (to be looked up in an appropriate
message resources database), and up to four placeholder arguments used for
parametric substitution in the resulting message.
IMPLEMENTATION NOTE - It is assumed that these objects are created and manipulated only within the context of a single thread. Therefore, no synchronization is required for access to internal collections.
- Version:
- $Rev$ $Date: 2005-08-06 18:03:30 -0400 (Sat, 06 Aug 2005) $
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.struts.action.ActionMessages
ActionMessages.ActionMessageItem
-
Field Summary
Fields inherited from class org.apache.struts.action.ActionMessages
accessed, GLOBAL_MESSAGE, iCount, messages
-
Constructor Summary
ConstructorDescriptionCreate an emptyActionErrors
object.ActionErrors
(ActionErrors messages) Create anActionErrors
object initialized with the given messages. -
Method Summary
Methods inherited from class org.apache.struts.action.ActionMessages
add, add, clear, get, get, isAccessed, isEmpty, properties, size, size, toString
-
Constructor Details
-
ActionErrors
public ActionErrors()Create an empty
ActionErrors
object. -
ActionErrors
Create an
ActionErrors
object initialized with the given messages.- Parameters:
messages
- The messages to be initially added to this object. This parameter can benull
.- Since:
- Struts 1.1
-