Hi !
I have one problem .I tried to make two jsp files with
which i tried to make a little test for
my error page.I make one page named useErrorPage.jsp and
it looks like this:
<%@page errorPage="errorPage.jsp" %>
<%@taglib uri=" prefix="c"%>
<%@taglib uri=" prefix="fmt"%>
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<fmtarseDate value="A midsummer night"/>
</body>
</html>
with this page i tried to make error on page by putting
a string against number in parseDate value, and
another page tried to catch this error.The second
page looks like this:
<%@page isErrorPage="true" %>
<%@taglib uri=" prefix="c"%>
<%@taglib uri=" prefix="fmt"%>
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<h1>JSP Page</h1>
<h4>Error!</h4>
<p>Something bad happened in one of your pages:</p>
<p><cut value="${pageContext.exception.message}"/></p>
</body>
</html>
All i can get wen i call useErrorPage.jsp is 500 Html error
and not error page that i expect.
Can eanyone help me!or have another idea for fast testing
error page on this way.
I have one problem .I tried to make two jsp files with
which i tried to make a little test for
my error page.I make one page named useErrorPage.jsp and
it looks like this:
<%@page errorPage="errorPage.jsp" %>
<%@taglib uri=" prefix="c"%>
<%@taglib uri=" prefix="fmt"%>
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<fmtarseDate value="A midsummer night"/>
</body>
</html>
with this page i tried to make error on page by putting
a string against number in parseDate value, and
another page tried to catch this error.The second
page looks like this:
<%@page isErrorPage="true" %>
<%@taglib uri=" prefix="c"%>
<%@taglib uri=" prefix="fmt"%>
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<h1>JSP Page</h1>
<h4>Error!</h4>
<p>Something bad happened in one of your pages:</p>
<p><cut value="${pageContext.exception.message}"/></p>
</body>
</html>
All i can get wen i call useErrorPage.jsp is 500 Html error
and not error page that i expect.
Can eanyone help me!or have another idea for fast testing
error page on this way.