Well, I would never show my user an error message from some low level system such as the database. If you really want them to see this info you could define a message key as anything={0} and substitute your SQL message. I highly discourage this but it's an option.

David





From: ROSSEL Olivier <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: Reporting an Exception message in a JSP.
Date: Tue, 25 Feb 2003 16:03:12 +0100

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]


_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to