yes that's where i get the exception :D but how can i implement a PreResultListener. And also what i understand from the below writing is you can not dispatch to another page after calling an invocation.invoke() method. Am i wrong :) ?
Dave Newton-4 wrote: > > --- 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] > > > -- View this message in context: http://www.nabble.com/Struts-2-exception-problem-tf3525255.html#a9842762 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]