Hi Chin
Try out this jsp page as your error page
<%@ page import="java.util.Enumeration" isErrorPage="true" %>
<html>
<head>
<title>Error Page</title>
</head>
<body>
<h1>Our Error Page</h1>
<!-- Print Exception -->
We got ourselves an exception:<BR>
<%= exception %>
<!-- Print Application Attributes -->
<p>
<table border="1">
<tr>
<th colspan="2">Application Attributes</th>
</tr>
<%
Enumeration appAttributeEnum = application.getAttributeNames();
while (appAttributeEnum.hasMoreElements()) {
String name = (String)appAttributeEnum.nextElement();
%>
<tr>
<th><%= name %> </th>
<td><%= application.getAttribute(name) %> </td>
</tr>
<%
}
%>
</table>
<!-- Print Request Attributes -->
<p>
<table border="1">
<tr>
<th colspan="2">Request Attributes</th>
</tr>
<%
Enumeration attributeEnum = request.getAttributeNames();
while (attributeEnum.hasMoreElements()) {
String name = (String)attributeEnum.nextElement();
%>
<tr>
<th><%= name %> </th>
<td><%= request.getAttribute(name) %> </td>
</tr>
<%
}
%>
</table>
<!-- Print Parameters -->
<p>
<table border="1">
<tr>
<th colspan="2">Parameters</th>
</tr>
<%
Enumeration parameterEnum = request.getParameterNames();
while (parameterEnum.hasMoreElements()) {
String name = (String)parameterEnum.nextElement();
%>
<tr>
<th><%= name %> </th>
<td><%= request.getParameter(name) %> </td>
</tr>
<%
}
%>
</table>
<p>
</body>
</html>
Regards
Jitesh Gangwani
----- Original Message -----
From: Chin Sung Kit <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 30, 2000 12:59 PM
Subject: errorpage.jsp
> hi all,
>
> how do i use an errorpage which catches all the exception?
>
> thanks.
>
> regards,
> ced
>
> "Never let yesterday's disappointments overshadow tomorrow's dreams"
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets