jsp异常处理请各位大狭帮帮忙~~~~~~~~急 在做JSP错误处理页时老是出现HTTP 500 - 内部服务器错误 Internet Explorer 请各位帮帮忙吧!!!在线等~~~~~~~~~~~~~~ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <%@ page language="java" errorPage="error.jsp" contentType="text/html; charset=GBK" import="java.sql.*" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>Divide</title></head><body><center> <h1> <% int dividend=0; int divisor=0; int result=0; try{ dividend=Integer.parseInt(request.getParameter("value1")); } catch(NumberFormatException nfex){ throw new NumberFormatException("被除数不是整数!"); } try{ divisor=Integer.parseInt(request.getParameter("value2")); } catch(NumberFormatException nfex){ throw new NumberFormatException("除数不是整数!"); } result=dividend/divisor; out.println(dividend+"/"+divisor+"="+result); %> <br><br><br> </h1> <a href="javascript:history.back();">返回</a></center></body></html> <%@ page isErrorPage="true" contentType="text/html; charset=gb2312" language="java" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>错误信息</title></head><body><center><h1 align="center">错误信息</h1><br><br><hr><p><h3><%=exception.toString()%></h3><br><br><a href="javascript:history.back();">返回</a></p></center></body></html> 无法显示网页 您要访问的网页有问题,无法显示。 --------------------------------------------------------------------------------请尝试以下操作:打开 localhost:8080 主页,然后查找指向您感兴趣信息的链接。 单击刷新按钮,或以后再试。单击搜索,寻找 Internet 上的信息。 也可查看相关站点列表。 HTTP 500 - 内部服务器错误 Internet Explorer 你用什么URL访问的?tomcat启动了没?端口是否正确?把IE-->工具-->Internet选项-->显示IE友好错误消息 的勾去掉 是IE的问题把IE-->工具-->Internet选项-->显示IE友好错误消息 的勾去掉 如何用jsp model1 来取SQL数据库的表中的头20条记录 自定义标签问题(高手请进) 高手快来帮忙,分不够再加!连接池问题! 这个问题有点傻 怎样把字符添加到一个空字符串中 Expert Spring MVC and Web Flow 第六章关于URL重定向问题 SmartUpload中的方法setAllowedFilesList怎样匹配任意大小写扩展名 hibernate异常 新上手路:怎么对Tomcat进行设置? 高分征解:60分解决简单问题 如何在jsp中加入ocx控件?又如何调用ocx控件中的函数? 正则问题求教,谢谢各位帮忙!
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Divide</title>
</head><body>
<center>
<h1>
<%
int dividend=0;
int divisor=0;
int result=0;
try{
dividend=Integer.parseInt(request.getParameter("value1"));
}
catch(NumberFormatException nfex){
throw new NumberFormatException("被除数不是整数!");
}
try{
divisor=Integer.parseInt(request.getParameter("value2"));
}
catch(NumberFormatException nfex){
throw new NumberFormatException("除数不是整数!");
}
result=dividend/divisor;
out.println(dividend+"/"+divisor+"="+result);
%>
<br><br><br>
</h1>
<a href="javascript:history.back();">返回</a>
</center>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>错误信息</title>
</head><body>
<center>
<h1 align="center">错误信息</h1>
<br><br>
<hr>
<p>
<h3><%=exception.toString()%></h3>
<br><br>
<a href="javascript:history.back();">返回</a>
</p>
</center>
</body>
</html>
您要访问的网页有问题,无法显示。 --------------------------------------------------------------------------------请尝试以下操作:打开 localhost:8080 主页,然后查找指向您感兴趣信息的链接。
单击刷新按钮,或以后再试。单击搜索,寻找 Internet 上的信息。
也可查看相关站点列表。
HTTP 500 - 内部服务器错误
Internet Explorer
tomcat启动了没?端口是否正确?
把IE-->工具-->Internet选项-->显示IE友好错误消息 的勾去掉
把IE-->工具-->Internet选项-->显示IE友好错误消息 的勾去掉