You can store the DataSource in JNDI. An easier way is to configure some
kind of service layer with the datasource.
David
From: "Dinesh Sampangi" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: Accessing struts datasource outside action servlet
Date: Thu, 6 Feb 2003 11:26:25 +0530
Hi All,
How can i access the datasource outside the action class. suppose
i need a connection in a bean/other class where i need some pre population
of data from the database..
any suggestion woul be a gr8 help.
rgds,
Dinesh
_
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]