I think you may be confusing Struts2 (S2) interceptors with Spring
Interceptors.
The two are not the same.

S2 interceptors provide some "aop-like" functionality by allowing code to
modify request processing in some fashion; however it's not truly based
around an aop standard ( i.e. aopallliance ) ( s2 devs, please feel free to
correct and chide me. )

The OpenSessionInViewInterceptor ( OSVI ) is an analog to the
OpenSessionInViewFilter (OSVF), but I belive it's primarily used for
SpringMVC ( and possibly related, like Grails ).

OSVF is more generic and designed to be used in a larger number of
frameworks.
I believe, in this case, what you probably want is the filter.

hth,
-a






panpan wrote:
> 
> Thank you Toni for your example.
> I'm just wondering about the OpenViewInSessionInterceptor. Don't know how
> to configure it in struts2.
> 
> Thanks again!
> 
> 
-- 
View this message in context: 
http://www.nabble.com/-S2--how-to-configure-Spring%27s-OpenViewInSessionInterceptor-for-struts2-tf4050042.html#a11506464
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to