struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Law <>
Subject Re: Some Spring/Struts questions
Date Wed, 12 May 2010 13:15:03 GMT

dcabasson wrote:
> That's actually possible. We are doing that type of things by using the 
> @Autowired annotation, which means that spring needs to find a suitable 
> bean to inject there. If you put that annotation on your base class, the 
> instance will get injected in all sub-classes. But in that case, it's 
> better for the actions to be unaware of that, so I would using the 
> static approach. Otherwise, you could use an interceptor to push that 
> object on to the stack.

But that introduces a dependency on Spring into my Action classes, no? And
puts *some* of the configuration into the code and some inside of the Spring
config file.

I think that I'd rather avoid those outcomes if at all possible.

I think I'm leaning back towards Interceptors :o{


View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message