chambers777
asked on
JSP database Class
I am trying to create a basic database class that I can use in my pages that will allow me to easily open a connection, query (returning a Resultset) and close the connection.... I don't need a connection pool...etc as I can plug that in myself.
I thought I'd ask if there is already one written...
Luke
I thought I'd ask if there is already one written...
Luke
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can but then you will have to open them again next time around..
I just don't close it because I may use it multiple times on the same page.....
I just don't close it because I may use it multiple times on the same page.....
ASKER
Thanks! Works Like a charm!
Glad to be of help...:-)
Don't forget to close the question..
Don't forget to close the question..
ASKER
Now if I return a resultset, do I have to close it in the calling statement?