BEA WebLogic Server 9.0 API Reference
weblogicx.jsp.tags.validators
Class CompareValidator
java.lang.Object
weblogicx.jsp.tags.validators.CustomizableAdapter
weblogicx.jsp.tags.validators.CompareValidator
- All Implemented Interfaces:
- Customizable, Serializable
- public class CompareValidator
- extends CustomizableAdapter
Compares two strings from the two fields provided in the
fieldToValidate attribute.
They must be of the form field1,field2 where field1
is the field to be compared against field2
- See Also:
- Serialized Form
- Copyright © 2005 BEA Systems, Inc. All Rights Reserved.
Method Summary |
boolean |
equals(Object o)
|
boolean |
validate(ServletRequest request)
Its is assumed here that the compare validator compares
2 fields which are listed as comma seperated elements
in the fieldToValidate. |
CompareValidator
public CompareValidator()
equals
public boolean equals(Object o)
- Overrides:
equals
in class CustomizableAdapter
validate
public boolean validate(ServletRequest request)
throws Exception
- Its is assumed here that the compare validator compares
2 fields which are listed as comma seperated elements
in the fieldToValidate.
here fieldToVlidate is assumed to be like
firstField,secondField
where firstField is the main field being validated
secondField is the field to be validated against.
- Specified by:
validate
in interface Customizable
- Specified by:
validate
in class CustomizableAdapter
- Parameters:
request
- : received
- Throws:
Exception