Java Field Validator

Can you recommend any mechanism / technology / third-party jar that performs field checking (for example, checking field length, regular expressions, etc.)?

It is important , which would be very customizable, which means that I can match the fields with a set of validations or something like that.

Perhaps he should also be able to implement custom validators.

Any suggestion would be appreciated,

Thank!

+3
source share
3 answers

javax.validation( JSF 303 - Bean Check)

Hibernate validator is a reference implementation.

+3
source
+1

Apache has a package for this. Http://commons.apache.org/validator/ Struts also has a built-in module.

+1
source

Source: https://habr.com/ru/post/1736290/


All Articles