Check "CoreInterceptor.Classes" init-param in stripes configuration reference 
page http://www.stripesframework.org/display/stripes/Configuration+Reference.

Here org.stripesstuff.plugin.waitpage.WaitPageInterceptor will be executed 
first.

<init-param>

<param-name>CoreInterceptor.Classes</param-name>

<param-value>

org.stripesstuff.plugin.waitpage.WaitPageInterceptor,

net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor,

net.sourceforge.stripes.controller.HttpCacheInterceptor

</param-value>

</init-param>


Christian

________________________________
From: Ross Sargant [mailto:rsarg...@tvrc.com]
Sent: Friday, March 26, 2010 11:35 AM
To: Stripes Users List
Subject: [Stripes-users] Interceptor Order

Hi,
  How can I get my custom security interceptor to run ahead of the 
BeforeAfterMethod interceptor?  In the event of  server side session timeout, 
my security interceptor  detects the null user object in the http session and 
tries to interrupt the processing flow by returning a resolution to my login 
page (with a "session timeout" message).

It isn't working correctly because the BeforeAfterMethod interceptor is running 
first and still executes some @After methods on the bean. The  @After methods 
wind up throwing NPEs because the session state is gone.



--
Ross Sargant
Software Engineer
p: 954-623-6015 x2108
email: rsarg...@tvrc.com<mailto:rsarg...@tvrc.com>

TVR Communications LLC
541 S. State Road 7,Suite 5,Margate, Florida,33068

http://www.tvrc.com

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to