You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by "Middlebrook, Barry" <Ba...@centurylink.com> on 2013/08/20 22:25:33 UTC

[validator] Usage page is useless

This kind of narrative does not provide the kind of detail necessary to create a quick implementation. It's useless:
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.
REF: http://commons.apache.org/proper/commons-validator/
Would someone be so kind as to provide everyone a simple code example? Thank you.


Re: [validator] Usage page is useless

Posted by Dave Newton <da...@gmail.com>.
IMO a detailed example doesn't *belong* on the homepage; that is an
overview that accurately reflects the basic steps.

There are code samples on the links in the left nav under "Documentation".


On Tue, Aug 20, 2013 at 4:25 PM, Middlebrook, Barry <
Barry.Middlebrook@centurylink.com> wrote:

> This kind of narrative does not provide the kind of detail necessary to
> create a quick implementation. It's useless:
> 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.
> REF: http://commons.apache.org/proper/commons-validator/
> Would someone be so kind as to provide everyone a simple code example?
> Thank you.
>
>


-- 
e: davelnewton@gmail.com
m: 908-380-8699
s: davelnewton_skype
t: @dave_newton <https://twitter.com/dave_newton>
b: Bucky Bits <http://buckybits.blogspot.com/>
g: davelnewton <https://github.com/davelnewton>
so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>