📄 errorhandler.jsp
字号:
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%--
* @author Sujatha
* @version 1.0
*
* Name of the Application : errorHandler.jsp
* Development Environment : Oracle9i JDeveloper
*
* Creation/Modification History :
* Sujatha 27-Feb-2002 Created
*
* Overview of application :
*
* This JSP file displays the corresponding error message if any.
*
--%>
<%@ page language="java" isErrorPage="true" %>
<HTML>
<HEAD>
<LINK rel="stylesheet" href="includes/Styles.css" type=
"text/css">
<TITLE>Virtual Shopping Mall - Error </TITLE>
<!-- To prevent caching -->
<%
response.setHeader("Cache-Control","no-cache"); // HTTP 1.1
response.setHeader("Pragma","no-cache"); // HTTP 1.0
response.setDateHeader ("Expires", -1); // Prevents caching at the proxy server
%>
</HEAD>
<BODY bgcolor="white">
<CENTER>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<TR>
<TD>
<jsp:include page="header.jsp" flush="true"/>
</TD>
</TR>
<TR>
<TD>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="4">
<TR>
<TD colspan="2" class="SubHeading"><B>Error in Virtual
Shopping Mall Application </B> </TD>
</TR>
<TR>
<TD colspan="2" class="BlueText">
<img src="images/error.gif">
<!-- print the exception details -->
<%
// If there is an exception object in the attribute list,
// display the exception details
Exception exc =(Exception)request.getAttribute("Exception");
java.io.PrintWriter writer = new java.io.PrintWriter(out);
if(exc!=null){
exc.printStackTrace(writer );
}
if(exception!=null){
exception.printStackTrace(writer);
}
%>
<html:errors /><br>
<html:messages id="messages" message="true">
<bean:write name="messages"/>
</html:messages>
</TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD>
<HR>
</TD>
</TR>
</TABLE>
</CENTER>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -