First of all you shouldn't rethrow the exception. That hides the true nature of the problem.
> -----Original Message----- > From: jsp [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 25, 2003 4:17 AM > To: 'Tomcat Users List' > Subject: MYSQL and TOMCAT > > PreparedStatement updateInfo; > updateInfo = con.prepareStatement( > "insert into info(?);"); > updateInfo.setString(1,Referer); > updateInfo.execute(); > > } > catch (SQLException sqle) { > error = "Update failed, possible duplicate entry"; > throw new SQLException( error ); > } > } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]