struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karr, David" <david.k...@attws.com>
Subject RE: [Declarative Exception] How to access the exception text
Date Thu, 26 Dec 2002 16:34:10 GMT
Unfortunately, the only thing that is really clear about this is the code (AFAICS).  The default
exception handler will put the exception into request scope under the key symbol "Globals.EXCEPTION_KEY",
which is the string "org.apache.struts.action.EXCEPTION".

> -----Original Message-----
> From: Jerry Jalenak [mailto:Jerry.Jalenak@LABONE.com]
> Sent: Thursday, December 26, 2002 8:00 AM
> To: 'struts-user@jakarta.apache.org'
> Subject: [Declarative Exception] How to access the exception text
> 
> 
> 
> In my struts-config I have a <global-exception> defined to handle
> java.lang.Exception:
> 
> 	<global-exceptions>
> 		<exception path="error.page" 
> type="java.lang.Exception"/>
> 	</global-exceptions>
> 
> On this page I want to be able to display the text from the 
> exception (i.e.
> e.getMessage()).  How can I get access to this?
> 
> TIA!
> 
> Jerry Jalenak
> Web Publishing
> LabOne, Inc.
> 10101 Renner Blvd.
> Lenexa, KS  66219
> (913) 577-1496
> jerry.jalenak@labone.com
> 
> 
> This transmission (and any information attached to it) may be 
> confidential and is intended solely for the use of the 
> individual or entity to which it is addressed. If you are not 
> the intended recipient or the person responsible for 
> delivering the transmission to the intended recipient, be 
> advised that you have received this transmission in error and 
> that any use, dissemination, forwarding, printing, or copying 
> of this information is strictly prohibited. If you have 
> received this transmission in error, please immediately 
> notify LabOne at the following email address: 
> securityincidentreporting@labone.com
> 
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message