Martin Gainty wrote:
the problem is you are relying on your own ServletFilter
It's a Struts 2 interceptor.
this is possibly a configuration problem please display hibernate.xml,hibernate.properties
The issue is with the interceptor and not knowing that the result is executed within the invocation.invoke() method, thus the result is rendered before the interceptor can return the ERROR result.
Fairly comprehensive example of configuring hibernate with struts is located at http://www.hibernate.org/105.html
That's Struts 1; OP is using Struts 2, and writing, in essence, a Struts 2 version of OpenSessionInView.
(Whether or not that's a good pattern is, of course, debatable :) Dave --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org