>-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 Bara
On Thu, Sep 17, 2009 at 1:03 PM, Mike Baranski
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
>-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 B
On Thu, Sep 17, 2009 at 10:19 AM, Mike Baranski
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.
S
09 4:12 PM
>To: Struts Users Mailing List
>Subject: Re: Calling an "init" method on an interceptor
>
>Mike Baranski wrote:
>> I'm using Spring IOC, and need struts to call an init() method on an
>> interceptor *after* spring does its injection.
>
>If y
Mike Baranski wrote:
I'm using Spring IOC, and need struts to call an init() method on an
interceptor *after* spring does its injection.
If you can detect in code when all the injections are done (all
associated private members are non-null), then you could add a
conditional call to your init
6 matches
Mail list logo