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{
Later,
Andy
--
View this message in context:
http://old.nabble.com/Some-Spring-Struts-questions-tp28533505p28535809.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org