?? errorpage.jsp
字號:
<%-- 這個JSP腳本是用來捕捉例外的 --%>
<%@ page contentType="text/html;charset=gb2312" %>
<%@ page isErrorPage="true" %> <%-- 定義這個JSP頁面是其他JSP腳本頁面的錯誤顯示頁面 --%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
.tableline { border-color: #FF0033 ff0033 ff0033; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px}
-->
</style>
</head>
<body bgcolor="#FFFFFF">
<table width="100%" border="0" cellpadding="2" cellspacing="2" class=tableline>
<tr>
<td height="34">
<table width="100%" border="0" cellpadding="2" cellspacing="2">
<tr>
<td> </td>
</tr>
<tr>
<td>
<div align="center"><b><font face="華文細黑" size="5" color="#FF3333"><img src="error.jpg" width="43" height="40">
JSP腳本在執行時產生例外:</font></b></div>
</td>
</tr>
<tr>
<td><font color="#0000FF">
<%=exception.toString()%> <%-- 捕捉并打印錯誤 --%>
</font></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -