I am closing the connection immeidately with following code in each file
servlet
--------
public void destroy() {
try {if (conn != null) conn.close();} catch (SQLException e) {}
}
jsp
----
public void jspDestroy()
{
try {if (conn != null) conn.close();} catch (SQLException e) {}
}
Please suggest me if any mistake in above code