On Mon, 21 Feb 2011 07:55:05 -0600, Anup Niroula
<[email protected]> wrote:
catch (Exception e)
{
out.println ("Cannot connect to database server");
}
I guess the answer is hidden within 'e'.
Anyway, you should rather use JNDI
http://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howto.html
Or at least any framework (spring, dbutils, etc).
--
Mikolaj Rydzewski <[email protected]>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]