|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.struts.action.ActionMessage | +--org.apache.struts.action.ActionError
An encapsulation of an individual error 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.
The placeholder objects are referenced in the message text using the same
syntax used by the JDK MessageFormat
class. Thus, the first
placeholder is '{0}', the second is '{1}', etc.
Since Struts 1.1 ActionError
extends ActionMessage
.
Field Summary |
Fields inherited from class org.apache.struts.action.ActionMessage |
key, values |
Constructor Summary | |
ActionError(java.lang.String key)
Construct an action error with no replacement values. |
|
ActionError(java.lang.String key,
java.lang.Object value0)
Construct an action error with the specified replacement values. |
|
ActionError(java.lang.String key,
java.lang.Object[] values)
Construct an action error with the specified replacement values. |
|
ActionError(java.lang.String key,
java.lang.Object value0,
java.lang.Object value1)
Construct an action error with the specified replacement values. |
|
ActionError(java.lang.String key,
java.lang.Object value0,
java.lang.Object value1,
java.lang.Object value2)
Construct an action error with the specified replacement values. |
|
ActionError(java.lang.String key,
java.lang.Object value0,
java.lang.Object value1,
java.lang.Object value2,
java.lang.Object value3)
Construct an action error with the specified replacement values. |
Methods inherited from class org.apache.struts.action.ActionMessage |
getKey, getValues |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ActionError(java.lang.String key)
key
- Message key for this error messagepublic ActionError(java.lang.String key, java.lang.Object value0)
key
- Message key for this error messagevalue0
- First replacement valuepublic ActionError(java.lang.String key, java.lang.Object value0, java.lang.Object value1)
key
- Message key for this error messagevalue0
- First replacement valuevalue1
- Second replacement valuepublic ActionError(java.lang.String key, java.lang.Object value0, java.lang.Object value1, java.lang.Object value2)
key
- Message key for this error messagevalue0
- First replacement valuevalue1
- Second replacement valuevalue2
- Third replacement valuepublic ActionError(java.lang.String key, java.lang.Object value0, java.lang.Object value1, java.lang.Object value2, java.lang.Object value3)
key
- Message key for this error messagevalue0
- First replacement valuevalue1
- Second replacement valuevalue2
- Third replacement valuevalue3
- Fourth replacement valuepublic ActionError(java.lang.String key, java.lang.Object[] values)
key
- Message key for this messagevalues
- Array of replacement values
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |