Avi Y
Avi Y

Reputation: 2495

Java fields validation mechanism

Can you recommend any mechanism/technology/3rd party jar that does field validation (like field length validation, regexp validations and so on..)?

It's important that it would be highly configurable - meaning that I would be able to map between fields to a set of validations or something of that sort.

Perhaps it should have also the ability to implement custom validators.

Any suggestion would be appreciated,

Thank you!

Upvotes: 3

Views: 455

Answers (3)

JoseK
JoseK

Reputation: 31371

Apache has a package for this http://commons.apache.org/validator/ Struts has this built-in as well

Upvotes: 1

Narayan
Narayan

Reputation: 6241

take a look at Spring validator particularly the PropertyEditor part

Upvotes: 1

Bozho
Bozho

Reputation: 597114

javax.validation (JSF 303 - Bean Validation)

Hibernate validator is the reference implementation.

Upvotes: 3

Related Questions