--- Laurie Harper <[EMAIL PROTECTED]> wrote:
> Is what a Spring 2.5 thing? AFAIK, you need to set the action
> mapping's 'class' attribute to the Spring bean identifier to get
> injection via the spring plugin...
Oh; I wonder why I don't have to do that.
My understanding was that they only need
If you are refering to the annotations, yes they are an spring 2.5
thing (about time!).
musachy
On Fri, May 9, 2008 at 3:14 AM, Laurie Harper <[EMAIL PROTECTED]> wrote:
> Is what a Spring 2.5 thing? AFAIK, you need to set the action mapping's
> 'class' attribute to the Spring bean identifier to g
Is what a Spring 2.5 thing? AFAIK, you need to set the action mapping's
'class' attribute to the Spring bean identifier to get injection via the
spring plugin... but maybe I'm just tiered and not thinking it through :-/
L.
Dave Newton wrote:
Is this a Spring 2.5 thing? I'm not using 2.5 yet a
Is this a Spring 2.5 thing? I'm not using 2.5 yet and haven't had to do
anything to get my actions to be injected with Spring beans (at least I
don't think so; I remember having to set the object factory to "spring"
in earlier days?)
Dave
--- Laurie Harper <[EMAIL PROTECTED]> wrote:
> Asleson, R
Asleson, Ryan wrote:
Hello,
I found this guide to injecting Spring beans into Struts 2 Actions:
http://cwiki.apache.org/WW/spring.html
According to the red box at the bottom of the document, the Struts 2
Action does not need to be registered with Spring. So far so good.
Er, that's not
Related to this question, I'm leveraging Spring's use of the @Resource
annotation to the private member variable (no setter needed), thus fully
relying on Spring's injection mechanism. I supposed it all depends on
tight coupling to Spring you want to add.
Relph,Brian wrote:
The actions are au
The actions are auto-wired by name by default - so if any of its properties
match bean-ids in your spring config, and they have setters, then those
properties will get set.
The part about declaring the dependencies means you disable the auto-wiring,
and declare your actions as spring beans. So
7 matches
Mail list logo