There was some effort a while ago to standardize some of the common database error codes, I don't know how far that got, but as always these standards are the lowest common subset anyway.
HTH Brett Connor
Research labs wrote:
Thanks for your prompt response.
As you are aware, getErrorCode() method of SQLException returns the vendor specific SQL error code, but there is no getErrorMessage() method. Since this is the case, how can I get the actual error message if I implement according to your suggestion?
Please do you have any example in which this is implemented? Alternatively, do you know of any site that has an example.
Thank you.
Ola
--- Robert Taylor <[EMAIL PROTECTED]> wrote: > One
strategy is to wrap the SQLException thrown by
___________________________________________________________ALL-NEWmySQL in a meaningful ApplicationException which can be caught in your action class or declarative exception handling mechanism and "interpretted" into the appropriate client error message which can be placed in the appropriate scope (request or session) which can in turn be rendered in the .jsp page.
robert
-----Original Message-----[mailto:[EMAIL PROTECTED]
From: Research labs
Sent: Saturday, July 17, 2004 8:27 AMerror in jsp
To: Struts Users Mailing List
Subject: outputting mysql (or any other database)
Can anyone please tell me the best way to get aoutput
database error into my java code so that I can
to mythe database error in a JSP etc.
My key problem is how to pass the database error
Java code.
Thank you.
Ola.
Yahoo! Messenger - sooooo many all-new ways to---------------------------------------------------------------------
express
yourself http://uk.messenger.yahoo.com
---------------------------------------------------------------------To unsubscribe, e-mail:[EMAIL PROTECTED]
For additional commands, e-mail:[EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
___________________________________________________________ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself http://uk.messenger.yahoo.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]