在Firefox和Chrome都试了,死活不起作用。即使使用附书光盘的代码,也不起作用。大家出现过这种问题吗?
环境是Windows7+tomcat-7.0.37以下是两个页面的代码:errorTest.jsp文件<%@ page contentType="text/html;charset=GBK" language="java" errorPage="error.jsp" isErrorPage="false" %>
<html>
<head>
<title>欢迎</title>
</head>
<body>
<%!
int b=5;
int c=0;
int n=b/c;
%>
</body>
</html>
error.jsp文件<%@ page contentType="text/html;charset=GBK" language="java" isErrorPage="true" %>
<html>
<head>
<title>欢迎</title>
</head>
<body>
系统出现异常,这是错误提示页面!
</body>
</html>
jsp
环境是Windows7+tomcat-7.0.37以下是两个页面的代码:errorTest.jsp文件<%@ page contentType="text/html;charset=GBK" language="java" errorPage="error.jsp" isErrorPage="false" %>
<html>
<head>
<title>欢迎</title>
</head>
<body>
<%!
int b=5;
int c=0;
int n=b/c;
%>
</body>
</html>
error.jsp文件<%@ page contentType="text/html;charset=GBK" language="java" isErrorPage="true" %>
<html>
<head>
<title>欢迎</title>
</head>
<body>
系统出现异常,这是错误提示页面!
</body>
</html>
jsp
解决方案 »
- 用ajax做select联动
- 求大牛解决问题,高分送!!!
- JSP中在一页中的多个单选,在另一页获取多个单选的值
- 求救!!关于jacob 操作word时,用Item遍历段落会变的非常慢
- 第一次用Extjs 读取后台错误!!! 请指教
- 不显示删除回复显示所有回复显示星级回复显示得分回复 荐一个自带1.5jre的“开源”浏览器,精简后的jre只有3m,超精悍!!!!!!!!!!
- 求助:JSP 用户登陆后,怎么判断鼠标键盘无动作?
- 在jsp中,double形数据如何写才能保留两位小数?
- JasperReports报表问题
- java webservice中 转json时出错了,求帮助
- Unable to load configuration. - bean - jar:file:/C:/Program%20Files/Apache%20Sof
- 这个必须有啊 进来看看
[
<error-page>
<error-code>500</error-code>
<location>/error.jsp</location>
</error-page>