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:[email protected]] 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 <[email protected]>: > 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: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

