RE: Spring Injection Strange behaviour - SOLVED!

2015-09-06 Thread Martin Gainty
Congratulations Chris! Martin __ > From: crisp...@gmx.us > To: user@struts.apache.org > CC: user@struts.apache.org > Subject: Re: RE: Spring Injection Strange behaviour - SOLVED! > Date: Sun, 6 Sep 2015 06:38:47 +0200 > > > Finally I found

RE: Spring Injection Strange behaviour

2015-09-05 Thread C N Davies
ction" cannot be resolved and the only way to fix it is use the full class name. I'm stumped! Chris -Original Message- From: Lukasz Lenart [mailto:lukaszlen...@apache.org] Sent: Sunday, September 6, 2015 12:37 AM To: Struts Users Mailing List Subject: Re: Spring Injection Strange behaviour

Re: Spring Injection Strange behaviour

2015-09-05 Thread Dave Newton
Not sure, but if nothing else the action should be set to `prototype` scope, as they're instantiated per-request. Are you using the Struts 2 Spring plugin? On Sat, Sep 5, 2015 at 8:47 AM, Chris wrote: > I'm trying to use the Spring plugin to inject a dependency into my action

Spring Injection Strange behaviour

2015-09-05 Thread Chris
I'm trying to use the Spring plugin to inject a dependency into my action at runtime. This is the first time I've tried this with Struts2 so I may have missed something but I'm stumped because I can see the dependency is injected but then the object is later null when I need to use it. Here is

Re: Spring Injection Strange behaviour

2015-09-05 Thread Lukasz Lenart
How do you declare the action in struts.xml? Because instead full class name you must use the id from applicationContext.xml http://struts.apache.org/dtds/struts-2.0.dtd;> success.jsp

Re: RE: Spring Injection Strange behaviour - SOLVED!

2015-09-05 Thread Chris
such an idiot.   Thanks   Chris   Sent: Sunday, September 06, 2015 at 3:32 AM From: Chris <crisp...@gmx.us> To: "Dave Newton" <davelnew...@gmail.com>, "Struts Users Mailing List" <user@struts.apache.org> Subject: RE: Spring Injection Strange behaviour Hi Da

RE: Spring Injection Strange behaviour

2015-09-05 Thread Chris
...@gmail.com] Sent: Saturday, September 5, 2015 11:27 PM To: Struts Users Mailing List Subject: Re: Spring Injection Strange behaviour   Not sure, but if nothing else the action should be set to `prototype` scope, as they're instantiated per-request.   Are you using the Struts 2 Spring plugin?   On Sat