If others don't have a problem with it, I can implement this tonight... > -----Original Message----- > From: Daniel Pfeifer [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 13, 2003 11:50 AM > To: '[EMAIL PROTECTED]' > Cc: Jason Carreira > Subject: RE: [OS-webwork] Problems with code after > actionInvocation.invoke() > > > Well, in our environment we encountered several cases where > we would need to set specific values. As we have deadlines > for our current project such a solution would be needed soon. > I would even contribute to the project with such a > PreResultListener but need some hints how I could accomplish > this. Contact me in private if you want. > > /Daniel > > -----Original Message----- > From: Jason Carreira [mailto:[EMAIL PROTECTED] > Sent: den 13 november 2003 17:34 > To: [EMAIL PROTECTED] > Subject: RE: [OS-webwork] Problems with code after > actionInvocation.invoke() > > > Yes, this is the intended behavior. > > The issue is that Interceptors are stateless, so you can't do: > > Intercept() -> before -> execute -> after > Dispose() > > Because your Interceptor can't keep request specific state to > be disposed in another call... > > I'm wondering if it would be a good idea to have an Observer > pattern in here... > PreResultListener.beforeResult(ActionInvocation > invocation)... Then Interceptors that want to be notified > before the Result could register with the ActionInvocation to > have a callback... This shouldn't affect any of the current > code, and would just allow for one more lifecycle point.. Thoughts? > > > -----Original Message----- > > From: Daniel Pfeifer [mailto:[EMAIL PROTECTED] > > Sent: Thursday, November 13, 2003 11:06 AM > > To: '[EMAIL PROTECTED]' > > Subject: [OS-webwork] Problems with code after > > actionInvocation.invoke() > > > > > > I am currently having trouble with a custom interceptor. The > > Interceptor is supposed to determine which values to set on > > the ValueStack by the resultstring it receives from > > actionInvocation.invoke(). The problem is: Once > > actionInvocation.invoke() is executed the whole flow is > > executed, even the ServletDispatcherResult is executed and > > thus the JSP page is already loaded before my interceptor had > > a chance to modify some invocation result based values. > > > > Is this the standard behaviour of Webwork 2.0 (latest CVS > > checkout) or should I file a bugreport in JIRA? If this is > > the standard behaviour the reason for an after() in > > AroundInterceptor is beyond my comprehension (other than > > possibly doing some clean-up and in that case it should be > > called something like dispose()). > > > > Thanks in advance, > > /Daniel > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: ApacheCon 2003, > > 16-19 November in Las Vegas. Learn firsthand the latest > > developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, > > and more! http://www.apachecon.com/ > > _______________________________________________ > > Opensymphony-webwork mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: ApacheCon 2003, > 16-19 November in Las Vegas. Learn firsthand the latest > developments in Apache, PHP, Perl, XML, Java, MySQL, > WebDAV, and more! http://www.apachecon.com/ > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork >
------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork