--- oguzhan tortop <[EMAIL PROTECTED]> wrote: > But if i get a commit error for example a duplivate > key it passes to the > catch statement in the final block and then it > returns Action.ERROR . And > also it returns error as a param i debugged the code > by attaching source but > the problem is it still dispatches to the success
Whoops; obviously you're right--I mis-read the code. (I was even typing it in thinking OMG why can't he read his own code!) So you're seeing the "HibernateException in dispose()" message, correct? http://struts.apache.org/2.x/docs/writing-interceptors.html "Keep in mind that invoke will return after the result has been called (eg. after you JSP has been rendered), making it perfect for things like open-session-in-view patterns. If you want to do something before the result gets called, you should implement a PreResultListener." Is that the problem? d. ____________________________________________________________________________________ Get your own web address. Have a HUGE year through Yahoo! Small Business. http://smallbusiness.yahoo.com/domains/?p=BESTDEAL --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]