Thanks, the invocation.invoke() will execute all the following interceptors, and render the view, then I can close the transaction and session?
-----Original Message----- From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com] Sent: Friday, February 13, 2009 4:00 PM To: Struts Users Mailing List Subject: Re: Interceptor that runs after a view is rendered 2009/2/13 Security Management <list-subscripti...@secmgmt.com>: > I'm using Hibernate, and am going to create an interceptor to run before the > Action to open a session and start a transaction. > > After the view is rendered, I want to commit the transaction. > > This will result in 1 transaction per request, how can I do the second > (after) interceptor? If you call invocation.invoke() inside your interceptor, the result will be already rendered then you can do what you want and. Regards -- Lukasz http://www.lenart.org.pl/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org