errorpage问题
来源:互联网 发布:lol我的数据查询 编辑:程序博客网 时间:2024/05/02 05:03
JSP环境:windows server 2003 Enterprise、jdk1.5.0_11、Tomcat 6.0
按教材中的案例做了两个页面:
<!--errorhappen.jsp-->
<%@ page contentType="text/html;charset=gb2312" autoFlush="false" errorPage="errorPage.jsp"%>
<html>
<head>
<title>产生错误</title>
</head>
<body>
<%
int i;
for(i=1;i<10000;i++)
out.print(i);
%>
</body>
</html>
<!--errorPage.jsp-->
<%@ page contentType="text/html;charset=gb2312"isErrorPage="true"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>出错处理</title>
</head>
<body>
<h2 align="center">出错了!!!</h2>
<!--输出出错信息-->
<%=exception.getMessage()%>
</body>
</html>
在预览errorhappen.jsp页面的时候,出现“网站无法显示该页面”、“HTTP 500 内部服务器错误”,没有转到errorPage.jsp页面。
最终解决方法如下:
打开IE浏览器,工具-->internet选项-->高级,找到"显示友好http错误信息",去掉前面的对勾即可正常地显示错误页面。
- errorpage问题
- errorPage跳转问题
- errorpage
- JSP中errorPage的问题
- 解决errorpage里面取不到Authentication的问题
- tomcat ErrorPage
- errorPage的使用
- errorPage与isErrorPage
- errorPage的实际使用方法
- JSP中errorPage设置方法
- JSP中的errorPage和isErrorPage
- JSP中的errorPage与isErrorPage的使用
- JSP中的errorPage与isErrorPage的使用
- JSP中errorPage无法跳转的解决办法
- ErrorPage——错误页面的配置
- Jsp中<%page errorPage%>的使用
- page指令的errorPage属性的用法
- jsp errorPage 之自定义错误页面
- 渣打称中国房市出现泡沫
- 文件下载
- 30分钟掌握STL
- Struts框架 过滤器doFilter
- Struts框架 ShoppingCart
- errorpage问题
- Struts框架 UserBean
- HTML 标签
- getline问题
- QT与SCIM引起的问题
- 当前流行的J2EE WEB应用架构分析
- 聪明的头脑是在危机感中滋养的!
- 字符串转换整形
- 如何在 JavaScript 中实现拖放