开发者

Java fields validation mechanism

开发者 https://www.devze.com 2022-12-22 06:40 出处:网络
Can you recommend any mechanism/technology/3rd party jar that does field validation (like field length validation, regexp validations and so on..)?

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!


javax.validation (JSF 303 - Bean Validation)

Hibernate validator is the reference implementation.


take a look at Spring validator particularly the PropertyEditor part


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号