husted      2004/03/08 20:38:05

  Added:       web/example Error.jsp
  Log:
  Add generic Error page.
  
  Revision  Changes    Path
  1.1                  jakarta-struts/web/example/Error.jsp
  
  Index: Error.jsp
  ===================================================================
  <%-- 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 $
  
   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>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to