Deprecation - DataSource

2003-10-27 Thread Mathieu Grimault
First hello everyone !!! This is my first answer and i'm learning struts now... I'm using this method but it's deprecated...Did someone knows the right call ? thx. DataSource dataSource = (DataSource)servlet.getServletContext().getAttribute(Action.DATA_SOURCE_KEY);

Re: Deprecation - DataSource

2003-10-27 Thread Mark Lowe
You can use the jndi datasource that you define in web.xml rather than struts. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource- examples-howto.html The struts datasource is deprecated generally. Ideally you have your db connection stuff in your model layer. If this means

Re: Deprecation - DataSource

2003-10-27 Thread David Graham
--- Mathieu Grimault [EMAIL PROTECTED] wrote: First hello everyone !!! This is my first answer and i'm learning struts now... I'm using this method but it's deprecated...Did someone knows the right call ? thx. DataSource dataSource =