Reference says:

Property - Interceptor.Classes

Value - The comma-separated list of fully qualified class names of
Interceptor classes to use. The list may contain additional whitespace.
Entries higher up the list will be invoked before entries lower down. Care
should be taken when specifying this value to include the
BeforeAfterMethodInterceptor if it is still desired.

Default - net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor

web.xml:
....
<init-param>
          <param-name>Interceptor.Classes</param-name>
          <param-value>

net.sourceforge.stripes.integration.spring.SpringInterceptor,

net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor
          </param-value>
</init-param>
....

So, configured in such way Stripes  called methods annotated with @Before or
@After twice.


web.xml:
....
<init-param>
          <param-name>Interceptor.Classes</param-name>
          <param-value>
                net.sourceforge.stripes.integration.spring.SpringInterceptor
           </param-value>
</init-param>
....

This configuration fixed the issue.

If you take a look on DefaultConfiguration class you'd see the following

/** Instantiates the core interceptors, allowing subclasses to override the
default behavior */
protected Map<LifecycleStage, Collection<Interceptor>>
initCoreInterceptors() {
        Map<LifecycleStage, Collection<Interceptor>> interceptors = new
HashMap<LifecycleStage, Collection<Interceptor>>();
        addInterceptor(interceptors, new BeforeAfterMethodInterceptor());
        addInterceptor(interceptors, new HttpCacheInterceptor());
        return interceptors;
}

Does the documentation need to be updated?
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to