Ok, before I started converting my web app to
STRUTS, I used a DataSource to do connection pooling. I had an XML file with the same name as my web app in the webapps folder of
Tomcat. I did the Context.lookup for the JNDI name and all worked well.
Now that I am using STRUTS, this file no longer works for me. It tell me "name
jdbc not bound in this context".
So I then tried to use struts-config.xml's datasource element, but I couldn't get it to work either. I kept getting a nullpointerexception when I tried to just load the login page. After some research on google, I found that error to be caused by a problem with the datasource setup. But I didn't see any errors in it.
So my question is not how to get what I am doing working, but rather, how should I be utalizing a DataSource and Connection Pooling in STRUTS 1.1.
Thanks.