--- 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 = > (DataSource)servlet.getServletContext().getAttribute(Action.DATA_SOURCE_KEY);
Ideally you configure your DataSource in the server's JNDI registry and look it up from there. A Tomcat HOWTO is available here: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html David > > __________________________________ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]