error.jsp

来自「strust 框架 的源程序以及java类源代码」· JSP 代码 · 共 48 行

JSP
48
字号
<%-- Errors.jsp - Display unexpected errors, such as a JSP exception
     or missing resources --%>
<%--
 $Header: /home/cvs/jakarta-struts/web/example/Error.jsp,v 1.1 2004/03/09 04:38:05 husted Exp $
 $Revision: 1.1 $
 $Date: 2004-03-09 04:38:05 +0000 (Tue, 09 Mar 2004) $

 Copyright 2000-2004 Apache Software Foundation

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="org.apache.struts.Globals" %>
<%@ page import="org.apache.struts.webapp.example.Constants" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<html:html>
<head>
<title>Unexpected Error</title>
<html:base/>
</head>

<h3>An unexpected error has occured</h3>
<logic:present name="<%=Constants.ERROR_KEY%>">
<ul>
<logic:iterate id="error" name="<%=Constants.ERROR_KEY%>">
<li><bean:write name="error" /></li>
</logic:iterate>
</ul>
</logic:present>
<logic:present name="<%=Globals.EXCEPTION_KEY%>">
<p><bean:write name="<%=Globals.EXCEPTION_KEY%>" property="message" /></p>
</logic:present>

</body>
</html:html>

⌨️ 快捷键说明

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