On Mon, 21 Feb 2011 07:55:05 -0600, Anup Niroula <anup.niro...@gmail.com> 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 <m...@ceti.pl>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to