Charles:

Thanks for your help on this. I don't think I made myself clear in terms of
what I need.

What I need is not only the message I have stored possibly in a resources
file, but also the output of say exception.toString() in the message too. As
I am seeing it, I can't find a way to do that but I am hoping I am wrong.

Thanks

**********************************************
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
[EMAIL PROTECTED]
AOL Instant Messenger: [EMAIL PROTECTED]

-----Original Message-----
From: Charles McClain [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 6:03 PM
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: RE: Declarative exception handling


Juan:

Yes.  I cribbed some code from the Struts example app that was reworked
for Struts 1.12b.  It appears below:

<logic:messagesPresent>
        <ul>
                <html:messages id="error">
                <li><bean:write name="error"/></li>
                </html:messages>
        </ul><hr>
</logic:messagesPresent>

-----Original Message-----
From: Juan Alvarado (Struts List) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 5:43 PM
To: Struts
Subject: Declarative exception handling


Does anyone know of a way to include the exception message in the body
of an error page one has declared in the global-exceptions section of
struts-config.xml

EX:

 <!-- Global Exceptions -->
  <global-exceptions>
        <exception      key="general.exception"
type="java.lang.Exception"
path="/admin/failure.jsp"/>
  </global-exceptions>

I want to be able to display the exception message in /admin/failure.jsp

I did not find anything on the archives on this.

Thanks

**********************************************
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
[EMAIL PROTECTED]
AOL Instant Messenger: [EMAIL PROTECTED]


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


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


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

Reply via email to