Re: [S2] Access DAOs in Spring actions

2007-04-25 Thread Adam Ruggles
If you are using the spring plugin then all you should have to do is add 
a setter to your action class and spring will handle it.


ie

public void setUserDAO(IUserDAO userDAO) {
   this.userDAO = userDAO;
}

wolverine my wrote:

Hi!

I have action classes configured in struts.xml and the DataSource,
SessionFactory, DAO objects configured in Spring's
applicationContext.xml.

How can I reference the DAO objects in my action class?

Please advise, thank you!

-
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]



[S2] Access DAOs in Spring actions

2007-04-24 Thread wolverine my

Hi!

I have action classes configured in struts.xml and the DataSource,
SessionFactory, DAO objects configured in Spring's
applicationContext.xml.

How can I reference the DAO objects in my action class?

Please advise, thank you!

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