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