|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.beasys.commerce.axiom.jsp.JspBeanBase
This class is the base class for many JSP Beans that are instantiated from the <jsp:usebean> JSP tag.
Field Summary | |
static java.lang.String |
DEFAULT_CATEGORY
Reserved for later use. |
Constructor Summary | |
JspBeanBase()
|
Method Summary | |
boolean |
findStringInArray(java.lang.String[] array,
java.lang.String str)
Returns true if an array of strings contains an exact match (case sensative) for the string passed in. |
static boolean |
hasSpecialHTMLChars(java.lang.String value)
Determines if a string has special HTML characters in it. |
static boolean |
isStringLetterOrDigit(java.lang.String value)
Determines if a string is a letter or digit. |
java.lang.String |
validateDoubleValue(java.lang.String fieldName,
double value,
double min,
double max)
Validates the content value of a double. |
java.lang.String |
validateDoubleValue(java.lang.String fieldName,
java.lang.String value,
double min,
double max)
Validates the content value of an double represented as a string. |
static java.lang.String |
validateGroupName(java.lang.String fieldName,
java.lang.String groupname,
int maxLength)
A helper method that validates a group name. |
java.lang.String |
validateIntValue(java.lang.String fieldName,
int value,
int min,
int max)
Validates the content value of an integer field. |
java.lang.String |
validateIntValue(java.lang.String fieldName,
java.lang.String value,
int min,
int max)
Validates the content value of an integer represented as a string. |
java.lang.String |
validateLength(java.lang.String fieldName,
int length,
int minLength,
int maxLength)
Validates the content length of a field. |
static java.lang.String |
validateUserName(java.lang.String fieldName,
java.lang.String username,
int maxLength)
A helper method that validates the user name. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String DEFAULT_CATEGORY
Constructor Detail |
public JspBeanBase()
Method Detail |
public java.lang.String validateLength(java.lang.String fieldName, int length, int minLength, int maxLength)
fieldName
- The name of the screen field.length
- The length of the content in the field.minLength
- The minimum length of the field.maxLength
- The maximum length of the field.public java.lang.String validateIntValue(java.lang.String fieldName, int value, int min, int max)
fieldName
- The name of the screen field.value
- The content integer value.min
- The minimum value of the field.max
- The maximum value of the field.public java.lang.String validateIntValue(java.lang.String fieldName, java.lang.String value, int min, int max)
fieldName
- The name of the screen field.value
- The content integer value as a String.min
- The minimum value of the field.max
- The maximum value of the field.public java.lang.String validateDoubleValue(java.lang.String fieldName, double value, double min, double max)
fieldName
- The name of the screen field.value
- The content double value.min
- The minimum value of the field.max
- The maximum value of the field.public java.lang.String validateDoubleValue(java.lang.String fieldName, java.lang.String value, double min, double max)
fieldName
- The name of the screen field.value
- The content double value as a String.min
- The minimum value of the field.max
- The maximum value of the field.public static boolean isStringLetterOrDigit(java.lang.String value)
value
- The content string value. This value should not be
null or an empty string.public static boolean hasSpecialHTMLChars(java.lang.String value)
Character | Decimal | Entity |
---|---|---|
" | " | " |
& | & | & |
< | < | < |
> | > | > |
non-breaking space |   | |
value
- The content string value.public static java.lang.String validateUserName(java.lang.String fieldName, java.lang.String username, int maxLength)
fieldName
- The name of the screen field.username
- The username String.public static java.lang.String validateGroupName(java.lang.String fieldName, java.lang.String groupname, int maxLength)
fieldName
- The name of the screen field.username
- The groupname String.public boolean findStringInArray(java.lang.String[] array, java.lang.String str)
array
- An array of Strings.str
- A string to find in the array.
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |