Re: Accessing DATA_SOURCE_KEY on a DAO

2001-11-28 Thread Otavio C. Decio
PROTECTED]> Sent: Wednesday, November 28, 2001 9:38 AM Subject: RE: Accessing DATA_SOURCE_KEY on a DAO > Hi > My choice in the same situation was to get the datasource in the actions, > actually implemented as a method in a base action I extend for everything > else > protec

RE: Accessing DATA_SOURCE_KEY on a DAO

2001-11-28 Thread Tom Lister
- From: Otavio C. Decio [SMTP:[EMAIL PROTECTED]] Sent: 28 November 2001 14:05 To: Struts Users Mailing List Subject: Accessing DATA_SOURCE_KEY on a DAO Hi, I was trying to find the best way to access the data source configured in

Accessing DATA_SOURCE_KEY on a DAO

2001-11-28 Thread Otavio C. Decio
Hi, I was trying to find the best way to access the data source configured in web.xml from a Data Access Object, but I'm confused because it requires the DAO to know about servlets, since one has use the getServlet().getServletContext function to get the connection information. Do you know of a