File: Error.jsp

package info (click to toggle)
libstruts1.2-java 1.2.9-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 47,516 kB
  • ctags: 29,430
  • sloc: xml: 90,344; java: 71,078; jsp: 31,692; makefile: 10; sh: 2
file content (47 lines) | stat: -rw-r--r-- 1,710 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<%-- 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>