I've gotten the error-page to work quite well, but not for the 404 error on a .jsp page...
 
Everytime when I try to do a garbled http-request I end up with an octet-stream/application response.
 
500 internal server works fine with the errorpage.
 
404 on badly formed urls works, unless it ends with .jsp
 
What am I missing...?
 
 <error-page>
  <!--Contains a mapping between an error code or exception type to the path of a resource in the web application. -->
  <error-code>404</error-code> 
    <!-- omitted exception type, cause i dont know what to put for it -->
    <location>se/4sale_error404.html</location>
      <!--The location of the resource in the web application. -->
    </error-page>
 <error-page>
  <!--Contains a mapping between an error code or exception type to the path of a resource in the web application. -->
  <error-code>500</error-code>
      <!--The HTTP error code, ex: 404. -->
  <exception-type>java.lang.Exception</exception-type>
      <!--A Java exception type. -->
    <location>se/4sale_error.html</location>
      <!--The location of the resource in the web application. -->
    </error-page>
 
 
regards Johan
 
----- Original Message -----
Sent: Thursday, February 22, 2001 9:48 AM
Subject: SV: Error Page

Hi guys,
   
    In order to get this to work on IE the file <location>error_500.jsp</location> must be 512b or more in size
 
Rikard
-----Ursprungligt meddelande-----[Rikard Westlund] If  
Från: Conrad Chan [mailto:[EMAIL PROTECTED]]
Skickat: den 22 februari 2001 00:32
Till: Orion-Interest
Ämne: RE: Error Page

Or set the return status code back to 200 since I really don't see a reason why I would like to return 500 if my error page will be probably shown.

Conrad
-----Original Message-----
From: SureTicket.com [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 1:20 PM
To: Orion-Interest
Subject: RE: Error Page

To be honest i think its because of IE's friendly error messages. You can turn them off and try again.
 
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, February 21, 2001 1:15 PM
To: Orion-Interest
Subject: Error Page

Hello,
I placed an error page tag in the web.xml in order to show a warning when any kind of error occurs.
However, that works fine with Netscape but not with Internet Explorer. Does anyone have any idea?
The following is the error page tag that I put.
 
<error-page>
  <error-code>500</error-code>
  <exception-type>java.lang.Exception</exception-type>
  <location>error_500.jsp</location>
</error-page>
 
I tried to put the whole URL in the location field, but it was of no use.
Please anyone......   I really appreciate all your clues in advance.
 
 
 
Simon

Reply via email to