Oh. Hang on. No, thats not a solution :( The problem is that CommitTx needs to be called *after* forwarding to success.jsp. The JSP might cause database access to occur when it iterates a collection or accesses a property of a bean.
For example, in Maverick, apparently, your controller may recieve a discard() callback when "when the views are finished and the model is discarded". I'm not sure of the details since I've never used maverick. sorry, I didn't read it carefully enough the first time..... Gavin ----- Original Message ----- From: "Gavin King" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, November 09, 2002 11:19 AM Subject: Re: [OS-webwork] Callback after view is rendered > Yep, I like that option :) > > Errors occurring in the JSP would also have to point to RollbackTx. > > ----- Original Message ----- > From: "Patrick Lightbody" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Saturday, November 09, 2002 11:12 AM > Subject: Re: [OS-webwork] Callback after view is rendered > > > > Sounds to me like some action chaining could help you out here: > > > > SomeUpdateThing.action=BeginTx > > SomeUpdateThing.success=ActuallyUpdateThing.action > > ActuallyUpdateThing.action=UpdateThing > > ActuallyUpdateThing.success=FinishUpdateThing.action > > ActuallyUpdateThing.error=StopUpdateThing.action > > FinishUpdateThing.action=CommitTx > > FinishUpdateThing.success=success.jsp > > StopUpdateThing.action=RollbackTx > > StopUpdateThing.success=error.jsp > > > > -Pat > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: See the NEW Palm > Tungsten T handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This sf.net email is sponsored by: See the NEW Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork