>-----Original Message----- >From: Marty Milligan [mailto:milligansisl...@gmail.com] >Sent: Thursday, September 17, 2009 2:16 PM >To: Struts Users Mailing List >Subject: Re: Calling an "init" method on an interceptor > >On Thu, Sep 17, 2009 at 1:03 PM, Mike Baranski ><list-subscripti...@secmgmt.com> wrote: >> I did see that, but I need spring to inject into the instantiated >instance >> from struts.xml, not the injected one from applicationContext.xml. > They >> seem to be 2 different ones if I have it in both. >> >> Maybe I can tell spring to grab the bean from struts, but I don't know >how. > >You can do it the other way round fairly easily. Just use a Spring >object factory. Just make sure the setters on the Spring side do >everything you need done before the init. > >--
Thanks, I think I just didn't know what the "spring object factory" was called so I couldn't search for it. That should do it. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org