Jose,
You should be able to. We use jsp pages for surface level exceptions like
this.
error-page
exception-typeuk.co.britannic.flexisale.common.exception.FlexisaleExceptio
n/exception-type
location/error/FlexisaleException.jsp/location
/error-page
And you may have to declare the page an error page, although that depends on
how you use it.
We use:
%@ page isErrorPage=true %
because this gives us access to the implicit exception object.
I'm not sure whether this is relevant to what your doing, as you are using
error codes.
But I can definitely say that the error-page syntax above works and that
JSPs can be used for certain.
Grant Doran
-Original Message-
From: Jose Mena [SMTP:[EMAIL PROTECTED]]
Sent: 10 April 2002 12:20
To: Orion-Interest
Subject: error-page tag in web-xml question
Hi,
I'm trying to set an error page in one of my web applications. To do this
i
have put this tag in the web.xml file:
error-page
error-code500/error-code
location/error.html/location
/error-page
to catch all the 500 errors and redirect the user to an error page. It
works
when i put a plain html page but it doesn't when i put a jsp.
is it possible to get a jsp instead of an html file?
thanks.
This email and any accompanying documents are intended only for the named recipient,
are confidential and may be privileged. If you are not the intended recipient please
notify us immediately by mailto:[EMAIL PROTECTED] and you must not copy, disclose
or otherwise use this message. Unauthorised use is strictly prohibited and may be
unlawful. The content of this email represents the view of the individual and not the
company. The company reserves the right to monitor the content of all emails in
accordance with lawful business practice.
Whilst attachments are virus checked before transmission, Britannic Assurance plc does
not accept any liability in respect of any virus which is not detected.
Britannic Assurance plc, No.3002 is registered in England and maintains its registered
office at 1 Wythall Green Way, Wythall, Birmingham B47 6WG.
Telephone: 0870 887 0001
Fax: 0870 887 0002
Website: www.britannicassurance.com
Britannic Assurance plc, Britannic Unit Linked Assurance Limited, Britannic ISA
Managers Limited and Britannic Unit Trust Managers Limited are regulated by the
Financial Services Authority. Each of these companies is a member of the Britannic
marketing group which only advises on and sells its own life assurance, pension, unit
trust and ISA products.