You can pass one or more arguments to the constructor of ActionError. This
argument could be your stack trace. 

In the resource string you have to handle the first argument as a {0}, the
second as {1} etc.

i.e. in you ApplicationResources.properties:
error.msg=An error has occured. Stack trace: {0}

Regards,
Bernhard

-----Ursprüngliche Nachricht-----
Von: ROSSEL Olivier [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 25. Februar 2003 16:03
An: '[EMAIL PROTECTED]'
Betreff: 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]

Reply via email to