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
Hey Roger, 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 :) -Original Message- From: RogerV [mailto:roger.var..