public final class VSameText extends FormValidator
Note, other rules such as required length, characters etc., are not
checked by this validator. Add a VText
to each password field for
that purupose.
Constructor and Description |
---|
VSameText(Form f,
String name,
String errorMessage,
Text field_one,
Text field_two) |
Modifier and Type | Method and Description |
---|---|
boolean |
validate(FormData fd,
javax.servlet.http.HttpServletRequest req)
Validates multiple fields together.
|
getErrorMessage, getName, setErrorMessage, toString
public boolean validate(FormData fd, javax.servlet.http.HttpServletRequest req)
FormValidator
Important notes: Typically, validation should be skipped in the following circumstances:
DependentField
and the
DependentField#shouldValidate
method returns false.validate
in class FormValidator