>-----Original Message----- >From: Marty Milligan [mailto:milligansisl...@gmail.com] >Sent: Thursday, September 17, 2009 11:43 AM >To: Struts Users Mailing List >Subject: Re: Calling an "init" method on an interceptor > >On Thu, Sep 17, 2009 at 10:19 AM, Mike Baranski ><list-subscripti...@secmgmt.com> wrote: >> Right, that sounds reasonable, and does not sound too sketchy to me, I >just >> need to do a DB query for a config value, and don't want it to happen >for >> every action. > >Does it have to happen in Struts? There is a hook for this in Spring. > >See init-method and destroy-method bean attributes.
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. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org