This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes apache common validation framework Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "apache common validation framework" Watch "apache common validation framework" New topic

apache common validation framework

Swapnil Dharane
Ranch Hand

Joined: Apr 22, 2012
Posts: 34
Hi all,
I want to use Apache validator in my project. But I don't know how to go further after creating an instance of Validator. I am performing validation in a filter. Is it a good way? And if it is, how to proceed further?
Rakesh K. Cherukuri
Ranch Hand

Joined: Jun 01, 2010
Posts: 47

Commons validator source distribution comes with examples. Check version of the one you are using and download the source from apache website (look for files similar to That should get you started with validator usage.

Regarding validation in filter (assuming servlet filters), the details are not enough. Whether its a good way or not depends on what you are trying to validate. A typical use of a filter is to log message arrivals but not to validate the request content. But that doesnt mean one should not. As i said it all depends on what you are trying to achieve.

Warm Regards,
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: apache common validation framework
Similar Threads
server side validation
Regarding Form Validation using Validator plugin
Apache commons validator in Swing
credit card, email, web site & postal code validation with Spring 2.5.6
Apache Commons Validation Framework