错误测试页面如下:
 exception.jsp
 <%@ page contentType="text/html; charset=GBK" import="java.sql.*" 
errorPage="error.jsp" %>
<html>
<head>
<title>
出错演示
</title>
</head>
<body bgcolor="#ffffff">
<% Integer.parseInt("t"); %>
</body>
</html>错误显示页面如下:
error.jsp
<%@ page contentType="text/html; charset=GBK" isErrorPage="true" %>
<html>
<head>
<title>
出错了!
</title>
</head>
<body bgcolor="#ffffff">
出错了!<br />
发生了以下的错误:
<br /><hr />
<font color="red">
<%=exception.getMessage() %>
</font>
</body>
</html>在浏览器里输入地址,打不开 exception.jsp,说http 500 服务器内部错误,
但在开发环境中运行时显示正常,why?