You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dave Newton <ne...@yahoo.com> on 2007/02/13 21:21:25 UTC
[S2] Spring Bean Interceptors?
Can Interceptors be Spring Beans (without hackery)?
Dave
____________________________________________________________________________________
Have a burning question?
Go to www.Answers.yahoo.com and get answers from real people who know.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [S2] Spring Bean Interceptors?
Posted by Dave Newton <ne...@yahoo.com>.
--- Mark Menard <ma...@mjm.net> wrote:
> "Dave Newton" wrote:
>> Can Interceptors be Spring Beans (without
>> hackery)?
> Yes, just wire it up in your application context. I
> use to inject a service bean into an interceptor
that
> handles retrieving user menu's based on role.
Great; thanks... I was hoping that was the case. So
for class (like actions) I just shove in the bean id?
Oh, that's going to take even a little BIGGER chunk
out of busy work code; sweet.
d.
____________________________________________________________________________________
Need a quick answer? Get one in minutes from people who know.
Ask your question on www.Answers.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [S2] Spring Bean Interceptors?
Posted by Mark Menard <ma...@mjm.net>.
On 2/13/07 3:21 PM, "Dave Newton" <ne...@yahoo.com> wrote:
> Can Interceptors be Spring Beans (without hackery)?
Yes, just wire it up in your application context. I use to inject a service
bean into an interceptor that handles retrieving user menu's based on role.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org