Beginning Java MVC 1.0 by Peter Späth

Beginning Java MVC 1.0 by Peter Späth

Author:Peter Späth
Language: eng
Format: epub
ISBN: 9781484262801
Publisher: Apress


@Email(regexp=regExp,

flags={f1,f2,...})

Checks whether the string value represents an email address. The optional regexp and flags parameters specify an additional pattern, with the same meaning as the @Pattern constraint.

You can see that there is no min or max check for float or double values. These were left out intentionally. Because of possible precision errors, these types of checks cannot reliably be performed.

It is also possible to define your own bean validators. For the lack of a double valued bound check, you might for example want to define a double (float) range validator (including some precision grace). For such an annotation, you would write the following:package book.javamvc.validation;



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.