|
Oracle Fusion Middleware Oracle WebLogic Server 10.3.1 API Reference 11g Release 1 (10.3.1) Part Number E13941-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object weblogicx.jsp.tags.validators.CustomizableAdapter weblogicx.jsp.tags.validators.RegExpValidator
public class RegExpValidator
The RegExpValidator is used for validating regular expressions. Under the hood it uses the org.apache.oro.text.regexp package for regexp validation. if an exact match is found the validate method returns true if the string value passed is a "", then the RegExpValidator returns true. This is done to prevent duplicate validation on the field in case the RequiredFieldValidator is also used.
It is thus recommended to use the RequiredFieldValidator along with
the RegExpValidator
,
Serialized FormField Summary |
---|
Fields inherited from class weblogicx.jsp.tags.validators.CustomizableAdapter |
---|
errorMessage, expression, fieldToValidate |
Constructor Summary | |
---|---|
RegExpValidator()
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
boolean |
validate(ServletRequest req)
users may use this method to validate the value of the parameter in the request for eg: the parameter value must contain NYC or it must not contain XYZ or they may even validate it against the custom expression set optionally. |
Methods inherited from class weblogicx.jsp.tags.validators.CustomizableAdapter |
---|
attributeDequote, getErrorMessage, getExpression, getFieldToValidate, setErrorMessage, setExpression, setFieldToValidate |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegExpValidator()
Method Detail |
---|
public boolean validate(ServletRequest req) throws Exception
CustomizableAdapter
validate
in interface Customizable
validate
in class CustomizableAdapter
req
- : received
Exception
public boolean equals(Object o)
equals
in class CustomizableAdapter
|
Documentation is available at http://download.oracle.com/docs/cd/E12839_01/web.1111/wls.htm Copyright 1996, 2009, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Oracle WebLogic Server 10.3.1 API Reference 11g Release 1 (10.3.1) Part Number E13941-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |