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);
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
--- 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 =
3 matches
Mail list logo