tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 25547] - default errorpage is displayed instead of the one forwarded to
Date Wed, 17 Dec 2003 19:31:01 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25547>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25547

default errorpage is displayed instead of the one forwarded to

jp.pelletier@videotron.ca changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |



------- Additional Comments From jp.pelletier@videotron.ca  2003-12-17 19:31 -------
I removed the forward to the error page and added this to the web.xml
   <error-page>
      <exception-type>java.lang.Throwable</exception-type>
      <location>/ErrorPage.jsp</location>
   </error-page>
   <error-page>
      <error-code>500</error-code>
      <location>/ErrorPage.jsp</location>
    </error-page>

It still display the default error page (It does use the file specified when it 
is a .html)

Here is a reference where they talk about forwarding to an error page
http://www.jguru.com/faq/view.jsp?EID=1347
http://www.jguru.com/faq/printableview.jsp?EID=1347

You might have to consider supporting forwarding to an error page
1) for backward compatibility because it was a recommended method of doing 
things in some books for example

2) There seems to be no ways for a servlet to have the servlet container 
properly invoke an .jsp error page on its behalf.

Thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message