RE: Struts 2 Spring Plugin Usage

2009-11-03 Thread Martin Gainty
t obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Tue, 3 Nov 2009 14:49:07 +0200 > Subject: Re: Struts 2 Spring Plugin Usage > From: roger.var...@googlemail.com > T

RE: Struts 2 Spring Plugin Usage

2009-11-03 Thread James Cook
rvice) { this.myService = myService; } . appContext.xml . I hope my example helps in some way... -Original Message- From: Roger Varley [mailto:roger.var...@googlemail.com] Sent: 03 November 2009 12:49 To: Struts Users Mailing List Subject: Re: Struts 2 Spring P

Re: Struts 2 Spring Plugin Usage

2009-11-03 Thread Roger Varley
> > I use the convention plugin for Struts and I take advantage of the > spring auto wiring (by name) to automagically inject my service layer. > You can do the same for the rest. Check out the reference guide over at > spring framework to do so. Weirdly I like having my DAO and Service > classes i

RE: Struts 2 Spring Plugin Usage

2009-11-02 Thread James Cook
having my DAO and Service classes in the appcontext xml file.. But then that is because I am weird... -Original Message- From: Roger Varley [mailto:roger.var...@googlemail.com] Sent: 02 November 2009 17:22 To: Struts Users Mailing List Subject: Re: Struts 2 Spring Plugin Usage > > I

Re: Struts 2 Spring Plugin Usage

2009-11-02 Thread Roger Varley
> > If I am understanding you then that is fine. > > I often do the same, as I like to have a DAO as well as a Service layer. > So inject my DAO's into my Service and my Service into my actions. > > Good ole' code by interface approach :) > It's the means that I have to employ to go down the next

RE: Struts 2 Spring Plugin Usage

2009-11-02 Thread James Cook
:roger.var...@googlemail.com] Sent: 02 November 2009 16:16 To: user@struts.apache.org Subject: Struts 2 Spring Plugin Usage In Mannings "Struts 2 in Action" there's an example of Spring setter-injection by simply specifying the bean to be injected with a basic applicationC

Struts 2 Spring Plugin Usage

2009-11-02 Thread RogerV
injects the SecurityManager with the service and then injects the SecurityManager into my Action. Have I missed something or is this working as it should and I'm misunderstanding the book? Regards -- View this message in context: http://old.nabble.com/Struts-2-Spring-Plugin-Usage-tp26