Ok, I found the reason why this is happening but I still don't clearly understand why.
ActionInvocation.invoke() runs without a problem but since every Interceptor calls ActionInvocation.invoke() the preResultListener is executed x times. Maybe their should be something like a preResultExecuted flag? /Daniel -----Original Message----- From: Daniel Pfeifer [mailto:[EMAIL PROTECTED] Sent: den 17 november 2003 11:25 To: '[EMAIL PROTECTED]' Subject: [OS-webwork] Problems with PreResultListener I think I have discovered a little problem with the PreResultListener. I've written following code: public class TabSupportInterceptor implements Interceptor { private static final Logger log = Logger.getLogger(TabSupportInterceptor.class); public String intercept(ActionInvocation actionInvocation) throws Exception { actionInvocation.addPreResultListener(this); // Assign beforeResult Listener. return actionInvocation.invoke(); } public void beforeResult(ActionInvocation invocation, String resultCode) { ... } } The problem that occours is that beforeResult will be executed as many times as there are interceptors in the workflow. In my case I have 6 interceptors which are executed before my action executes and therefore the code in beforeResult executes six times. I'm quite confident that this is not the intended behaviour, or am I mistaken? /Daniel ------------------------------------------------------- This SF. Net email is sponsored by: GoToMyPC GoToMyPC is the fast, easy and secure way to access your computer from any Web browser or wireless device. Click here to Try it Free! https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This SF. Net email is sponsored by: GoToMyPC GoToMyPC is the fast, easy and secure way to access your computer from any Web browser or wireless device. Click here to Try it Free! https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork