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]>

Reply via email to