commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Tedesco" <>
Subject RE: Validator Question
Date Tue, 25 May 2004 15:28:51 GMT
Thanks Dave:

-----Original Message-----
From: David Graham []
Sent: Tuesday, May 25, 2004 9:05 AM
To: Jakarta Commons Users List
Subject: Re: Validator Question

--- Mike Tedesco <> wrote:
> I was wondering about Pluggable Validators? I want to build into my app
> using the struts framework my own validator independent of Forms and
> HTTP (i.e. my own class that can be called from the business layer and
> all I have to do is supply a bean I want validation to be performed on.
> Is this possible from any layer (when will method get called)  and do
> you know of the steps I need to do this and how it explicitly gets
> called and how does it know about the params like Field,
> ValidationAction , etc.?

Commons Validator can be used in any layer of your app but you need to
invoke it yourself if you're not running it under Struts.  There's an
example class in cvs that demonstrates how to use the validator in a
non-web standalone application.  That's probably a good place to start.  

You could also look at the Struts classes in the
org.apache.struts.validator package to see how it configures and invokes
Commons Validator.


> -- Thanks

Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger. 

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message