| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.apache.struts.util.ErrorMessages
Utility class that is useful for accumulating error message keys in action classes or validation methods. Use this class as follows:
addError() method to add it.getErrors().
 
| Field Summary | |
private  java.util.Vector | 
errors
Deprecated. The accumulated set of error message keys.  | 
| Constructor Summary | |
ErrorMessages()
Deprecated.  | 
|
| Method Summary | |
 void | 
addError(java.lang.String key)
Deprecated. Add an error message key to the accumulated set of errors.  | 
 java.lang.String | 
getError(int index)
Deprecated. Return the error message key at the specified zero-relative index.  | 
 java.lang.String[] | 
getErrors()
Deprecated. Return the set of error message keys we have accumulated.  | 
 int | 
getSize()
Deprecated. Return the number of error message keys we have accumulated so far.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
private java.util.Vector errors
| Constructor Detail | 
public ErrorMessages()
| Method Detail | 
public void addError(java.lang.String key)
key - The error message key to be addedpublic java.lang.String getError(int index)
index - Zero-relative index of the error message key to returnpublic java.lang.String[] getErrors()
public int getSize()
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||