Leon wrote:
I should forward an ApplicationException to MyAction class and then, MyAction finds an appropriate jsp based on the message in ApplicationException. But, how can I know the SQLException thrown by persistance tire is duplicate entery SQLException or other SQLException?
Put an informative message in the DAO code that constructs the SQLException.
Some people then generate an email from the exception message and send it to the administrator email account. Other people might do something more technical such as send a JMS message that there is a problem. Or even open a socket and fire a simple XML message to some web service containing the contents of the exception. These ideas require you to have established a facility to receive and store such messages (JMS or web service), and might not be worth the added complexity.
Other people don't care if the user sees the exception message and they just print a message like "Please copy the contents of this stack trace into an email and send it to the admin". This is the easy, if ugly, solution.
Erik
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

