|
Hi,
Define the JDBC details in a method in a separate class and Create an object of that class in the servlet. Using this object, call the method which establishes connection.
I think this is the best possible way....If any query...do reply!!!
All The Best!!!
|