Hi,
I am very new to JSP/Servlets and trying to do simple stuff using
tomcat 4.1
In my simple project there are few pages that access the database using
JDBC. At the moment, everypage has the same code to load drivers, get connections and stuff. If I change the database or password, I have to change every page.
Can I create a function (lets say "getConn(
String db, String psswd)" ) which is stored in another file. so I only have to update this if I change the password or database.
Thanks
Chandaka