为什么IDE内部浏览器给HTTP 500内部服务器错误
问题描述:
error.jsp文件为什么IDE内部浏览器给HTTP 500内部服务器错误
<body>
<%@ page isErrorPage="true"%>
<h2>Sorry, your application generating an exception</h2>
Exception is : <%=exception %>
</body>
的index.html
<form action="process.jsp">
No1 : <input type="text" name="n1"><br><br>
No2 : <input type="text" name="n2"><br><br>
<input type="submit" value="Divide">
</form>
process.jsp
<%@ page errorPage="/error.jsp" %>
<%
String num1=request.getParameter("n1");
String num2=request.getParameter("n2");
int a = Integer.parseInt(num1);
int b = Integer.parseInt(num2);
int c = a/b
out.println("Division of numbers is : "+c);
%>
当我devide任意数量由零IDE内部网页浏览器给“Http 500服务器内部错误),当我改变网页浏览器它给我正确的输出
答
我发现IE默认打开了一项功能 - 显示友好的HTTP错误信息(转到工具 - > internet选项 - >高级 - >取消选中显示友好的HTTP错误信息)。然后在Eclipse IDE中执行 。为我工作!
jrbeddard你能回答我的问题吗 –