How to specify JDBC inside web.xml for struts application
Posted on 2003-03-03
I am using Struts for my new application. I have to access the Oracle database using JDBC. I want to specify the connection to Oracle DB in the web.xml or struts-config.xml file (not sure which one to use). I want to connect at the time the application starts and use the same connection object through all my pages. Is this feasible? If so, which xml file to mention and how? Also, how to pass the connection object to all the pages?
Thanks a lot