, September 24, 2009 12:19 PM
>To: Struts Users Mailing List
>Subject: Re: Interceptor IOC with Spring
>
>If you have working examples in the same application, there must be
>something different about this instance.
>
>Could it be the bean name? I've been occasionally baffled
ilto:thechrispr...@gmail.com]
> >Sent: Thursday, September 24, 2009 11:51 AM
> >To: Struts Users Mailing List
> >Subject: Re: Interceptor IOC with Spring
> >
> >The only other difference I can see between my (working) example and
> >yours
> >is that I used
p://www.springframework.org/schema/beans/spring-beans-2.0.xsd
>> http://www.springframework.org/schema/util
>> http://www.springframework.org/schema/util/spring-util-2.0.xsd";
>> default-autowire="byName">
>>
>> >-Original Message-
>> >Fr
Yes, and my other interceptor has my data source injected, and it's setup
the same way...
>-Original Message-
>From: Chris Pratt [mailto:thechrispr...@gmail.com]
>Sent: Thursday, September 24, 2009 11:51 AM
>To: Struts Users Mailing List
>Subject: Re: Interceptor IO
Original Message-
> >From: Chris Pratt [mailto:thechrispr...@gmail.com]
> >Sent: Thursday, September 24, 2009 11:29 AM
> >To: Struts Users Mailing List
> >Subject: Re: Interceptor IOC with Spring
> >
> >What do you have default-autowire set to in your ap
ay, September 24, 2009 11:29 AM
>To: Struts Users Mailing List
>Subject: Re: Interceptor IOC with Spring
>
>What do you have default-autowire set to in your applicationContext.xml?
> (*Chris*)
>
>On Thu, Sep 24, 2009 at 8:08 AM, Mike Baranski <
>list-subscripti...@secm
e and post it if I'm
> >still stuck...
> >
> >>-Original Message-
> >>From: Musachy Barroso [mailto:musa...@gmail.com]
> >>Sent: Wednesday, September 23, 2009 1:59 PM
> >>To: Struts Users Mailing List
> >>Subject: Re: Interceptor IOC
t;To: 'Struts Users Mailing List'
>Subject: RE: Interceptor IOC with Spring
>
>Doh! Sorry for the goose chase, I'll review my code and post it if I'm
>still stuck...
>
>>-Original Message-
>>From: Musachy Barroso [mailto:musa...@gmail.com]
&g
Martin,
Good find, but I am not sure if I
understand how that
relates to the OP question or musachy's
answer
nevermind
i think you are confused which interceptors we are
dealing with
if you take a closer look at the
original poster's question you'll see that this
thread is about struts intercep
Doh! Sorry for the goose chase, I'll review my code and post it if I'm
still stuck...
>-Original Message-
>From: Musachy Barroso [mailto:musa...@gmail.com]
>Sent: Wednesday, September 23, 2009 1:59 PM
>To: Struts Users Mailing List
>Subject: Re: Interceptor IOC w
Meh, it all works. Autorired with/without annotations and @Resource
also works (in interceptors). @OP, something is wrong in your
configuration, show us the code :)
musachy
On Wed, Sep 23, 2009 at 10:51 AM, Musachy Barroso wrote:
> Chris, if autowiring works then using @Autowire with @Qualifier
Chris, if autowiring works then using @Autowire with @Qualifier
(equivalent to @Resource) should also work, I have to try that.
musachy
On Wed, Sep 23, 2009 at 9:18 AM, Chris Pratt wrote:
> In my struts.xml I have:
>
>
>
> And at the top of my applicationContext.xml I have:
>
>
>
> And my Int
'importe quel effet légalement obligatoire. Étant donné que les email
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
> aucune responsabilité pour le contenu fourni.
>
>
>
>
>> Date: Wed, 23 Sep 2009 09:23:44 -0700
>> Subject: Re: Inte
OK, thanks, is there a JIRA for this? I'll be happy to request it as an
enhancement...
>-Original Message-
>From: Musachy Barroso [mailto:musa...@gmail.com]
>Sent: Wednesday, September 23, 2009 11:23 AM
>To: Struts Users Mailing List
>Subject: Re: Interce
enu fourni.
> Date: Wed, 23 Sep 2009 09:23:44 -0700
> Subject: Re: Interceptor IOC with Spring
> From: musa...@gmail.com
> To: user@struts.apache.org
>
> that makes sense, I use @Resource(name = "mybean") on my setter
> methods, so I guess it is just the annotat
that makes sense, I use @Resource(name = "mybean") on my setter
methods, so I guess it is just the annotations the ones that do not
work.
musachy
On Wed, Sep 23, 2009 at 9:18 AM, Chris Pratt wrote:
> In my struts.xml I have:
>
>
>
> And at the top of my applicationContext.xml I have:
>
>
>
>
In my struts.xml I have:
And at the top of my applicationContext.xml I have:
And my Interceptors are getting injected just fine. On another project, I
have autowiring turned off, but then you have to define each interceptor as
a bean in the applicationContext.xml and specifically define th
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
18 matches
Mail list logo