I wrote a simple Stripes interceptor for injecting Spring managed
dependencies into Stripes actions using Spring's annotations instead of
those in Stripes.  I think it's more consistent and flexible, not to mention
it's more familiar if you're already using Spring's annotations.  We've used
it on a few pet projects and one production project an it works like a
charm.

http://blog.carbonfive.com/2008/03/java/injecting-spring-25-beans-into-stripes-actions

If you're using Spring 2.5 you should consider giving it a try.  Maybe one
day it'll be included as part of Stripes.

Cheers,
Christian

On Sun, Nov 16, 2008 at 11:39 AM, Alex Turner <[EMAIL PROTECTED]> wrote:

> Hmmm - whats weird is that my other DAOs that are being injected are fine.
>
> On Sun, Nov 16, 2008 at 2:26 PM, Alex Turner <[EMAIL PROTECTED]> wrote:
>
>> The spring integration seems to work great for simple cases, but I'm
>> running into a case where my dependency is not injected.  My main action
>> bean is CreateTrifoldBrochureActionBean, and this is a subclass of
>> ProductActionBean.  ProductActionBean has spring inject beans in it, but
>> they don't appear to be getting injected.  When I check the injected object
>> to see if it is null, it is :(.
>>
>> Is this known behaviour or am I doing something wrong?
>>
>> Alex
>>
>
-- 
Christian Nelson -- (e) [EMAIL PROTECTED] -- (m) 415-378-3988
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to