# Package org.apache.struts2.validator.annotations

package org.apache.struts2.validator.annotations
Validator annotations.

- Related Packages
  Package
  Description
  org.apache.struts2.validator
  XWork validation subsystem.
  org.apache.struts2.validator.validators
  XWork default validator classes.
- Class
  Description
  ConditionalVisitorFieldValidator
  ConversionErrorFieldValidator
  This validator checks if there are any conversion errors for a field and applies them if they exist.
  CreditCardValidator
  This validator checks that a field is a valid credit card.
  CustomValidator
  This annotation can be used for custom validators.
  DateRangeFieldValidator
  This validator checks that a date field has a value within a specified range.
  DoubleRangeFieldValidator
  This validator checks that a double field has a value within a specified range.
  EmailValidator
  This validator checks that a field is a valid e-mail address if it contains a non-empty String.
  ExpressionValidator
  This non-field level validator validates a supplied regular expression.
  FieldExpressionValidator
  This validator uses an OGNL expression to perform its validator.
  IntRangeFieldValidator
  This validator checks that a numeric field has a value within a specified range.
  LongRangeFieldValidator
  This validator checks that a numeric field has a value within a specified range.
  RegexFieldValidator
  Validates a string field using a regular expression.
  RequiredFieldValidator
  This validator checks that a field is non-null.
  RequiredStringValidator
  This validator checks that a String field is not empty (i.e.
  ShortRangeFieldValidator
  This validator checks that a numeric field has a value within a specified range.
  StringLengthFieldValidator
  This validator checks that a String field is of the right length.
  UrlValidator
  This validator checks that a field is a valid URL.
  ValidationParameter
  The ValidationParameter annotation is used as a parameter for CustomValidators.
  Validations
  ValidatorType
  `ValidatorType`
  VisitorFieldValidator
  The validator allows you to forward validator to object properties of your action using the objects own validator files.