basicStackHibernate: Like Struts2 basickStack (NO validations here!), but with 
Hibernate Core session and transaction injections capability.

defaultStackHibernate: Like Struts2 defaultStack, but DO NOT USE Struts2 
validation methods (annotation and XML). Uses Hibernate Validation framework 
instead.

defaultStackHibernateStrutsValidation: Struts2 defaultStack + plugin 
basicStackHibernate. 
 
The Hibernate Validator on google has the necessary information you need with 
working configurations and sample code

http://code.google.com/p/full-hibernate-plugin-for-struts2/wiki/2_Hibernate_Validator_integration


SPRING Specific:

JBoss has a good tutorial for intergrating 
org.springframework.orm.hibernate3.LocalSessionFactoryBean to map preUpdate and 
preInsert events
    <map>
       <entry key="pre-insert" value-ref="beanValidationEventListener" />
       <entry key="pre-update" value-ref="beanValidationEventListener" />
    </map>
http://community.jboss.org/wiki/HibernateValidatorandSpring

you will need to configure in the dataSource

 

Viel Gluck,
Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.



 

> Date: Sat, 10 Jul 2010 08:43:31 -0700
> From: afatt...@yahoo.com
> Subject: Struts2+Hinerneta Validator+Spring
> To: user@struts.apache.org
> 
> Hi,
> 
> I want to use hibernate validation with struts and spring. I found the  "Full 
> Hibernate Plugin" which combines the struts 2 and hibernate and hibernate 
> validation. 
> It has its own API for using the hibernate, but it does not use the Spring. 
> However, I want to use is!
> So:
> 1- Can I use "Full Hibernate Plugin",  "Hibernate Validation" feature only. 
> 2- If not, are there any other frameworks which helps us with that.
> 3- I found a method described in 
> http://vamshisomanchi.wordpress.com/2008/07/26/struts-20-hibernate-validator/ 
> any other simpler way
> 
> ~Regards,
> ~~Alireza Fattahi
> 
> 
> 
                                          
_________________________________________________________________
The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with 
Hotmail. 
http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5

Reply via email to