<%@page isErrorPage=
<html>
<head>
<meta http
<title>JSP Page</title>
</head>
<body>
Error~!
<%=exception
</body>
</html>
<%@page info=
<%@page errorPage=
<html>
<head>
<meta http
<title>JSP Page</title>
</head>
<body>
<%
boolean tf = true;
if(tf){
String info = getServletInfo();
throw new Exception(
}
%>
</body>
</html>
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20524.html