ervletException(ex);
>> }
>> }
>>
>> public void init(FilterConfig filterConfig) throws ServletException {
>> log.trace("Initializing filter...");
>> log.trace("Obtai
!",
>> rbEx);
>> }
>>
>> // Let others handle it... maybe another interceptor for
>> exceptions?
>> throw new ServletException(ex);
>> }
>> }
>>
>> public void init(FilterConfig filterConfig) throws ServletE
ining SessionFactory from static HibernateUtil
> singleton...");
> sf = HibernateUtil.getSessionFactory();
> }
>
> public void destroy() {}
>
> }
>
>
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
4 matches
Mail list logo