8 messages in com.mysql.lists.javaConnecting during servlet init()
FromSent OnAttachments
Edilmar Alves09 Jun 2000 07:03 
Cris Perdue09 Jun 2000 08:33 
Mark Matthews09 Jun 2000 08:34 
Tim Endres09 Jun 2000 09:40 
LEBLANC, CLAUDE15 Jun 2000 06:06 
Tim Endres15 Jun 2000 07:01 
Michael Blood15 Jun 2000 07:43 
Tim Endres15 Jun 2000 08:01 
Subject:Connecting during servlet init()
From:LEBLANC, CLAUDE (clau@bell.ca)
Date:06/15/2000 06:06:17 AM
List:com.mysql.lists.java

Hello all,

I'm looking at the behavior of the servlet when mysql demon is not running.

If an error occurs with the connection to mySQL during a get(), I can catch the exception and send a message to the user using the servlet`s response object.

But if the error happens during the servlet init() method the user receive an ugly "Internal server error".

Is there a trick to return a page to the user in this case. Thanks.

Claude