Link to home
Start Free TrialLog in
Avatar of chambers777
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
ASKER CERTIFIED SOLUTION
Avatar of Kuldeepchaturvedi
Kuldeepchaturvedi
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chambers777
chambers777

ASKER

Gotcha... looks good..
Now if I return a resultset, do I have to close it in the calling statement?
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.....
Thanks! Works Like a charm!
Glad to be of help...:-)
Don't forget to close the question..