Re: Using validation with Hibernate...

2008-11-13 Thread Burton Rhodes
ervletException(ex); >> } >> } >> >> public void init(FilterConfig filterConfig) throws ServletException { >> log.trace("Initializing filter..."); >> log.trace("Obtai

Re: Using validation with Hibernate...

2008-11-13 Thread Burton Rhodes
!", >> rbEx); >> } >> >> // Let others handle it... maybe another interceptor for >> exceptions? >> throw new ServletException(ex); >> } >> } >> >> public void init(FilterConfig filterConfig) throws ServletE

Re: Using validation with Hibernate...

2008-11-13 Thread Adam Ruggles
ining SessionFactory from static HibernateUtil > singleton..."); > sf = HibernateUtil.getSessionFactory(); > } > > public void destroy() {} > > } > >

Using validation with Hibernate...

2008-11-13 Thread Burton Rhodes
I am having trouble getting Struts 2.x to implement validation and hibernate using the HibernateSessionRequestFilter (the pattern suggested on Hibernate.org). When the validation fails, Hibernate will still update the object in the database when the HibernateFilter closes the transaction. I get w