You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Vijay K Anand <r1...@freescale.com> on 2005/07/08 09:47:52 UTC
Database Connection
Hi All
I have a helper class which does creating connection and exception
handling for that . How do i create connection like
DataSource dataSource =
(DataSource)context.getAttribute(Action.DATA_SOURCE_KEY) ;
objConnection = datasource.getConnection();
it says error at context and Action.DATA_SOURCE_KEY
Any help brothers?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org