Hello,

first of all thanks for all your previous answers. Somehow,
I got the interceptor working for the simplest case, but
honestly I still dont know exactly why. Maybe it was a
caching issue.

Now I have some questions:

I have the "SimpleInterceptor":
>>>
public String intercept(ActionInvocation invocation) throws Exception {
 System.out.println("The action is being intercepted!");
return invocation.invoke(); //return Action.SUCCESS; (**)
}
<<<

and the struts.xml contains:
>>>
<action name="listRegistrationsWaiting" class="registrationWaitingAction" method="execute">
 <result>pages/list.jsp</result>
 <result name="input">pages/list.jsp</result>
<interceptor-ref name="simpleInterceptor"/> </action>
<<<

When I comment in (**) instead of the return,
the result is not displayed (list.jsp) is not invoked.
I dont understand why, since the interceptor should
be called as the LAST step as far as I understand the
doc?! Therefore, there should be no influence of
the interceptor at the result at all!

But obvously, Im misunderstanding something, since I found
out that it works, when I just call return invocation.invoke();
But also in this case I wounder why the interceptor is called
BEFORE the DB Access (I can see that on the console),
since the interceptor is provided as the LAST part of the
action.

Thanks for your help
Peter



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to