【发布时间】:2010-12-01 01:00:33
【问题描述】:
我创建了一个jsp包含
<%
int i=10;
if(i==10)
throw new ArithmeticException("ItsMyGenExcepetion");
%>
我已经在 web.xml 中输入了
<error-page>
<exception-type>java.lang.ArithmeticException</exception-type>
<location>/errordisplay.jsp</location>
</error-page>
我的 errordisply.jsp 包含
<%@ page isErrorPage="true" %>
在正文中
The page contain error <%= exception %>
但它没有显示错误页面....
【问题讨论】:
-
你是不是重定向到错误页面还是在错误页面没有显示消息?
-
页面显示 500:server side error
标签: java jsp jakarta-ee