Maybe http://struts.apache.org/2.x/docs/spring-plugin.html can be of some
help.

Cheers,
Peter 

-----Original Message-----
From: Dave Newton [mailto:[EMAIL PROTECTED] 
Sent: den 14 juni 2007 13:59
To: Struts Users Mailing List
Subject: Re: [S2] Getting DAO from Spring in Struts Action

--- "M. Bitner" <[EMAIL PROTECTED]> wrote:
> [...] Spring is picking up the beans defined in applicationContext and 
> instantiating them. How do I get them into my actions to use them for 
> data
access?

Two main ways:

1) Wire them up by hand (define your actions as beans in a Spring context
file, wire everything by hand)

2) Use "by-name" auto-wiring, tell S2 to use Spring as its object factory,
and provide getters/setters in your action with the same name as the bean.

d.



 
____________________________________________________________________________
________
Bored stiff? Loosen up... 
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to