struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lucas Gonzalez" <lucas.gonza...@convergia.com.ar>
Subject Re: best error page approach
Date Tue, 01 Jun 2004 16:17:07 GMT
Julio,
    Using a global forward for error pages might be a good choice, and if
you combine it with global-exceptions you have a pretty good solution.

ie:
 <global-forwards>
        <forward name="error" path="/pages/error.jsp"/>
 </global-forwards>

    <global-exceptions>
        <exception

handler="com.convergia.laos.struts.exceptions.handlers.NotLoggedInExceptionH
andler"
            key="security.error.message" path="/login" scope="request"

type="com.convergia.laos.struts.exceptions.NotLoggedInException"/>
    </global-exceptions>

Hope it helps
Best Regards,
Lucas

ps.- vivis en argentina?
----- Original Message ----- 
From: "Julio Cesar De Salvo" <jdesalvo@itechnology.com.ar>
To: "'Struts Users Mailing List'" <struts-user@jakarta.apache.org>
Sent: Tuesday, June 01, 2004 12:41 PM
Subject: best error page approach


Hi, what would be the best error handling approach in the Strut
framework.
I need to caught the error in the jsp pages and forward to an action
that sends an email with error information and then redirects to a jsp
that shows a message.

Thanks,
Julio Cesar De Salvo - Project Leader
iTechnology S.R.L. - Ciudad de la Paz 2846 - piso 1
Tel 54 11 4782.6901 / Fax 54 11 4782.6901
<mailto:jdesalvo@itechnology.com.ar> jdesalvo@itechnology.com.ar
AVISO DE CONFIDENCIALIDAD. La información incluida en este e-mail está
dirigida únicamente al destinatario. Puede contener información
privilegiada, confidencial y que no debe ser revelada. Si ha recibido
este e-mail por error, por favor no disemine, utilice, publique,
distribuya, revele o copie esta comunicación de ningún modo. En cambio,
por favor notifíquenos inmediatamente remitiéndonos este e-mail (incluso
el mensaje original en su contestación), por fax (54-11-4782-6901) o
teléfono (54-11-4782-6901) y entonces elimine y deseche todas las copias
de este e-mail. Gracias.
CONFIDENTIALITY NOTICE. The information in this e-mail is intended for
the designated recipient only. It may contain information that is
privileged, confidential and exempt from disclosure. If you have
received this e-mail in error, please do not disseminate, use, publish,
distribute, disclose or copy this communication in any way. Instead,
please notify us immediately by return e-mail (including the original
message in your reply), by fax (54-11-4782-6901) or by telephone
(54-11-4782-6901) and then delete and discard all copies of this e-mail.
Thank you.



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


Mime
View raw message