J2EE:显示ERROR页面时出错 [英] J2EE:error in displaying ERROR page

查看:127
本文介绍了J2EE:显示ERROR页面时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个jsp包含

i have created a jsp contains

<% 
  int i=10;
  if(i==10)
  throw new ArithmeticException("ItsMyGenExcepetion"); 
%>

我已在web.xml中输入

i have made entry in web.xml

<error-page>
<exception-type>java.lang.ArithmeticException</exception-type>
<location>/errordisplay.jsp</location>
</error-page>

我的errordisply.jsp包含

i have my errordisply.jsp contains

<%@ page isErrorPage="true" %>

正文

The page contain error <%= exception %>

但它没有显示错误页面....

but its not showing the error page....

推荐答案

这里我得到了我的排队解决方案,但没有答案

here i got my quetions solution but not the answer

当我使用Eclipse(SDK 3.2)网络浏览器时...

when i use Eclipse's (SDK 3.2) web browser...

页面显示


页面无法显示是
a问题与您尝试
到达的页面无法显示。

The page cannot be displayed There is a problem with the page you are trying to reach and it cannot be displayed.

请尝试以下方法:

打开localhost: 8080主页,然后
然后查找您想要的信息
的链接。单击刷新按钮,
或稍后再试。

Open the localhost:8080 home page, and then look for links to the information you want. Click the Refresh button, or try again later.

单击搜索以在Internet上查找信息
。您还可以查看
相关网站列表。

Click Search to look for information on the Internet. You can also see a list of related sites.

HTTP 500 - 内部服务器错误
Internet Explorer

HTTP 500 - Internal server error Internet Explorer

在哪里,当我使用mozilla firefox作为相同的网址时,它可以工作。

where as,when i use mozilla firefox for the same url,it works.

但是为什么???

这篇关于J2EE:显示ERROR页面时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆