--- Mark Rollins <[EMAIL PROTECTED]> wrote:
> I just haven't got round to finding out what I need 
> to do to Struts to get it to inject into an Action 
> class, yet.

Set the object factory as Spring, provide a setter in
the action class, and name the Spring bean the same
name as the setter, so

IFooService setFooService(IFooService service)

and

<bean name="fooService" class="FooServiceImpl"/>

is the quickest; IIRC it defaults to autowiring by
name.

http://struts.apache.org/2.x/docs/spring-plugin.html

d.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to