Have your Interceptor, in the before() method, register a PreResultListener with the ActionInvocation. The ActionInvocation will make a call back to this registered listener before the Result is executed.
> -----Original Message----- > From: Jens Riboe [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 10, 2004 3:03 PM > To: [EMAIL PROTECTED] > Subject: [OS-webwork] How do I intercept between action and view > > > I have been playing with interceptors in xwork/ww2 > and realized I'm misunderstanding the idea of an Interceptor. > > To my understanding an AroundInterceptor invokes before() and > after() around the execution of Action.execute(). > > However, by trace printouts I found out that after() is > invoked after the rendering of the view. > > interceptors.MyInterceptor - before > actions.MyAction - execute > MyView.jsp: enter > actions.MyAction - getWhatEver > MyView.jsp: exit > interceptors.MyInterceptor - after > interceptor.TimerInterceptor intercept Processed action > MyAction in 3828ms. > > So my question is: How can I intercept between the action and > the view? > > Reason: I want to populate the request attribute set with all > gettable > properties of the action, for easy use by a JSP-2.0/JSTL-1.1 > page. (ww2-taglib/ognl is not of interest for the moment) > > Many thanks in advance, > /jens > > > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, > CA. http://www.eclipsecon.org/osdn > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork