Commons Validator – Apache Commons Validator™
Apache Commons Validator ™
Last Published: 17 Nov 2025
Version: 1.10.2-SNAPSHOT
ApacheCon
Apache
Commons
Commons Validator
About
Asking Questions
Release History
Issue Tracking
Dependency Management
Sources
Security
License
Code of Conduct
Javadoc
Javadoc Current
Javadoc Archive
Documentation
Framework
Routines
Wiki
Building
Project Documentation
Project Information
About
Summary
Team
Source Code Management
Issue Management
Mailing Lists
Maven Coordinates
Dependency Management
Dependencies
Dependency Convergence
CI Management
Distribution Management
Project Reports
Commons
License
Components
Sandbox
Dormant
General Information
Security
Volunteering
Contributing Patches
Building Components
Commons Parent POM
Commons Build Plugin
Commons Release Plugin
Site Publication
Releasing Components
Wiki
ASF
How the ASF works
Get Involved
Developer Resources
Code of Conduct
Sponsorship
Thanks
Commons Validator
Apache Commons Validator helps you with common issues when receiving data either electronically or from
user input and verifying the integrity of that data. This work is
repetitive and becomes even more complicated when different sets
of validation rules need to be applied to the same set of data based
on locale. Error messages may also vary by locale.
This package addresses some of these issues to
speed development and maintenance of validation rules.
Releases
See the
Downloads
page for current/previous releases.
For details of whats new in each version see the
Release Notes
Community Notes
on
release are maintained on the
Apache Commons Wiki
Overview
Features
Validator provides two distinct sets of functionality:
A configurable (typically XML) validation engine
Reusable "primitive" validation methods
Your validation methods are plugged into the engine and
executed against your data. Often, these methods use
resources specific to one application or framework so Commons
Validator doesn't directly provide pluggable validator actions.
However, it does have a set of common validation methods
(email addresses, dates, URLs, etc.) that help in creating
pluggable actions.
Usage
In order to use the Validator, the following basic steps are required:
Create a new instance of the
org.apache.commons.validator.Validator
class. Currently
Validator instances may be safely reused if the current
ValidatorResources are the same, as long as you have completed any
previous validation, and you do not try to utilize a particular
Validator instance from more than one thread at a time.
Add any resources needed to perform the validations, such as the
JavaBean to validate.
Call the validate method on
org.apache.commons.validator.Validator
Documentation
The package Javadoc has useful information:
Validator Framework
Routines package
See the
Git repository
for the latest source code.
Support
The
commons mailing lists
act as the main support forum.
The user list is suitable for most library usage queries.
The dev list is intended for the development discussion.
Please remember that the lists are shared between all commons components,
so prefix your email by [validator].
Issues may be reported via
ASF JIRA
Copyright © 2002-2026
The Apache Software Foundation
Apache Commons, Apache Commons Validator, Apache, the Apache logo, and the Apache Commons project logos are trademarks of The Apache Software Foundation.
All other marks mentioned may be trademarks or registered trademarks of their respective owners.