error.jsp

来自「一套完整的工商12315的源程序jsp部分在12315里,后台JAVA部分在gs」· JSP 代码 · 共 80 行

JSP
80
字号

<%
/**
 *	$RCSfile: error.jsp,v $
 *	$Revision: 1.5.2.1 $
 *	$Date: 2001/01/21 21:30:25 $
 */
%>

<%@ page isErrorPage="true" %>

<%@ page contentType="text/html;charset=GBK" %>
<%@ page import="java.io.*,
                 java.util.*,
                 java.net.*"
%>
<link rel="stylesheet" href="../../style/global.css">
<%! /////////////
	// Debug mode will print out full error messages useful for an administrator or developer.
	// When debug is false, a generic error message more suitable for an end user is printed and
	// stack traces go to System.err.
	boolean debug = false; 
%>

<%
	
%>



<%	//////////////////////
	// Header file include
	
	// The header file looks for the variable "title"
	String title = "MessageBox: Error";
%>

<table class=pageHeaderBg cellpadding="1" cellspacing="0" border="0" width="100%">
  <td><table class=pageHeaderFg cellpadding="3" cellspacing="0" border="0" width="100%">
       <td>
	<span class="pageTitle">
	页面错误
	</span>
	</td>
	</table></td>
</table>
<p>
	
<font color="red" size="-1" face="verdana,arial,helvetica">
<b>The following exception occured:</b>
</font>
<p>

<%	if (exception != null && debug) { 
		StringWriter sout = new StringWriter();
		PrintWriter pout = new PrintWriter(sout);
		exception.printStackTrace(pout);
%>
	<pre>
	<%= sout.toString() %>
	</pre>
	
<%	}
	else {
   		exception.printStackTrace();   
%>

	<%	if( exception instanceof UnauthorizedException ) { %>
	
		You were not authorized to that action.
	
	<%	} else { %>

		An error occured while processing your request.
	
	<%	} %>
   
<% } //end else %>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?