-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: programmatic code example using hibernates validator
PostPosted: Fri Oct 15, 2010 6:50 am 
Newbie

Joined: Tue Jul 20, 2010 3:56 am
Posts: 6
Hello,

searching for a code example how to use hibernates validator programmatically. I want in a struts Action validate some form fields and i have to compare formfields against each other.
Maybe someone can give me a hint?

TIA
Daniel


Top
 Profile  
 
 Post subject: Re: programmatic code example using hibernates validator
PostPosted: Mon Oct 18, 2010 5:57 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Have you seen the bootstrapping section of the Validator online manual - http://docs.jboss.org/hibernate/stable/ ... r-instance?
Entry point is the Validation class which allows for different boostrapping/configuration options.
You can also look into the Bean Validation (JSR 303) specification directly. There are a lot of examples in there. Or you have a look at the test cases in the Validator code base.

If you have a concrete question/problem you can post here on the forum.

--Hardy


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.