|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The ValidatedValues
class allows a programmer who writes an InputProcessor
to report
the status, value and message of processed form fields back to the JSP. This class shile still valid and still used
is typically not used directly the ValidatedForm
class is much easier to work with.
Field Summary | |
static java.lang.String |
COUNTRY
the request attribute "COUNTRY" is needed to create the Locale to pass in to the ValidationExceptionTextFormatter constructor. |
static java.lang.String |
LANGUAGE
the request attribute "LANGUAGE" is needed to create the Locale to pass in to the ValidationExceptionTextFormatter constructor. |
static java.lang.String |
VARIANT
the request attribute "VARIANT" is needed to create the Locale to pass in to the ValidationExceptionTextFormatter constructor. |
Method Summary | |
javax.servlet.http.HttpServletRequest |
getHttpServletRequest()
Get a reference to the HttpServletRequest |
int |
getInvalidFieldCount()
Return the number of HTML form fields that did not validate. |
java.lang.String |
getMessage(java.lang.String name)
Get the message for the field |
java.lang.String |
getStatus(java.lang.String name)
Get the status of the field |
java.lang.Object |
getValue(java.lang.String name)
Get the value of the field |
java.lang.String |
getValueAsString(java.lang.String name)
Get the value of the field as a string, this method will return an empty string as opposed to null |
void |
incInvalidFieldCount()
Increment the number of HTML form fields that did not validate. |
void |
setInvalidFieldCount(int count)
Set the number of HTML form fields that did not validate. |
void |
setMessage(java.lang.String name,
java.lang.String value)
Set the message for the field |
void |
setStatus(java.lang.String name,
java.lang.String value)
Set the status of the field |
void |
setValue(java.lang.String name,
java.lang.Object value)
Set the value of the field |
Field Detail |
public static final java.lang.String LANGUAGE
public static final java.lang.String COUNTRY
public static final java.lang.String VARIANT
Method Detail |
public java.lang.String getStatus(java.lang.String name)
name
- name of the fieldpublic void setStatus(java.lang.String name, java.lang.String value)
name
- name of the fieldvalue
- status of the fieldpublic java.lang.Object getValue(java.lang.String name)
name
- name of the fieldpublic java.lang.String getValueAsString(java.lang.String name)
name
- name of the fieldpublic void setValue(java.lang.String name, java.lang.Object value)
name
- name of the fieldvalue
- value of the fieldpublic java.lang.String getMessage(java.lang.String name)
name
- name of the fieldpublic void setMessage(java.lang.String name, java.lang.String value)
name
- name of the fieldvalue
- message of the fieldpublic int getInvalidFieldCount()
public void setInvalidFieldCount(int count)
public void incInvalidFieldCount()
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |