struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Musachy Barroso <musa...@gmail.com>
Subject Re: Interceptor IOC with Spring
Date Wed, 23 Sep 2009 15:22:32 GMT
interceptors and  results do net get dependencies injected. If you
implement BeanFactoryAware, or ApplicationContextAware it will pass
you the bean factory or the context. I will take a look at this, as it
has been bothering me for a while.

musachy

On Wed, Sep 23, 2009 at 7:21 AM, Mike Baranski
<list-subscriptions@secmgmt.com> wrote:
> Correct me if I'm wrong, please, but if I have an interceptor, it should get
> injected by spring.
>
> I have a bean I'm expecting, the set method written, and the bean defined in
> applicationContext.
>
> My main struts.xml has:
>
> <constant name="struts.objectFactory"
> value="org.apache.struts2.spring.StrutsSpringObjectFactory" />
>
> My setter is not getting called, is there anything else I need to do?
>
>
> M.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message