【发布时间】:2013-05-28 21:41:47
【问题描述】:
我想为用户提供一个自定义的 JSP 页面来处理错误 500。
到目前为止,我尝试了web.xml中的正常配置
<error-page>
<description>Uncaught exception</description>
<error-code>500</error-code>
<location>/error500.jsp</location>
</error-page>
这不起作用。
我也尝试了 Google App Engine 的这个配置:
https://developers.google.com/appengine/docs/java/config/appconfig#Custom_Error_Responses
<static-error-handlers>
<handler file="/error500.jsp" />
</static-error-handlers>
我不知道要使用哪些,也没有设法使任何工作。
【问题讨论】:
-
请在 Firefox 中查看。如果在 Firefox 中它可以工作,那么您可以使用以下命令更改 IE 中的设置:support.microsoft.com/kb/294807
标签: java google-app-engine servlets error-handling