The AroundInterceptor is an abstraction (that we've recently discussed
deprecating).

The cannonical idiom is to to call {{invocaton.invoke();}} to separate
any "before" code from any  "after" code. The invoke method let any
other Interceptors and the Action fire.

The simplest example might from be the XWork TimerInterceptor:

       long startTime = System.currentTimeMillis();
       String result = invocation.invoke();
       long executionTime = System.currentTimeMillis() - startTime;

-Ted.

On 5/25/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
See, I learned something already... I thought there was a difference
between Interceptors that fire before and after an Action, now I see it's
just before() and after() methods of AroundInterceptor, so it's just two
Interceptors, AjaxXMLIOInterceptor and AjaxJSONIOInterceptor.  This is
*already* a worthwile exercise! :)

Frank

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




--
HTH, Ted.
* http://www.husted.com/struts/

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

Reply via email to