You can still use the fact that argument to the constructor of an ActionError is the
key to resource. You could set up your app resources with
some.key=Could not proceed because of {0} error
Then you can create the ActionError as
new ActionError("some.key", exception.getMessage());
Sri
-----Original Message-----
From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 10:03 AM
To: '[EMAIL PROTECTED]'
Subject: Reporting an Exception message in a JSP.
I want to display the error message of an SQLException
in my JSP.
At first, I tried to set an ActionError with this message and to display it via
<html:errors/>. It does not work because ActionError accepts as an input string the
key of a property.
So what's the nicest way to show to the user the error message that I get from my
SQLException ?
---cut here---
This e-mail is intended only for the above addressee. It may contain privileged
information. If you are not the addressee you must not copy, distribute, disclose or
use any of the information in it. If you have received it in error please delete it
and immediately notify the sender. Security Notice: all e-mail, sent to or from this
address, may be accessed by someone other than the recipient, for system management
and security reasons. This access is controlled under Regulation of Investigatory
Powers Act 2000, Lawful Business Practises.
---------------------------------------------------------------------
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]