You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by cr...@apache.org on 2006/09/08 08:29:44 UTC

svn commit: r441394 - in /beehive/trunk/netui/test/webapps: controls/web/error.jsp jsf/web/error.jsp

Author: crogers
Date: Thu Sep  7 23:29:43 2006
New Revision: 441394

URL: http://svn.apache.org/viewvc?view=rev&rev=441394
Log:
Fixed the error.jsp file in a couple of the NetUI test web apps. They had incorrect taglib directives and referrenced a bogus template.

Tests: NetUI controls and jsf (WinXP)


Modified:
    beehive/trunk/netui/test/webapps/controls/web/error.jsp
    beehive/trunk/netui/test/webapps/jsf/web/error.jsp

Modified: beehive/trunk/netui/test/webapps/controls/web/error.jsp
URL: http://svn.apache.org/viewvc/beehive/trunk/netui/test/webapps/controls/web/error.jsp?view=diff&rev=441394&r1=441393&r2=441394
==============================================================================
--- beehive/trunk/netui/test/webapps/controls/web/error.jsp (original)
+++ beehive/trunk/netui/test/webapps/controls/web/error.jsp Thu Sep  7 23:29:43 2006
@@ -1,18 +1,87 @@
-<!--Generated by Weblogic Workshop-->
+<%--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You 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.
+
+   $Header:$
+--%>
 <%@ page language="java" contentType="text/html;charset=UTF-8"%>
-<%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
-<%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
-<%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
-<netui-template:template templatePage="/resources/jsp/template.jsp">
-    <netui-template:setAttribute value="Error" name="title"/>
-    <netui-template:section name="bodySection">
-    <% response.setStatus( 200 ); %>
-    Internal Error:<br />
-    <span style="color:red;">
-    <netui:exceptions showMessage="true" showStackTrace="false"></netui:exceptions>
-    <span><br>
-    <span style="color:gray;font-size:10pt;font-family:arial;">
-    <netui:exceptions showMessage="false" showStackTrace="true"></netui:exceptions>
-    <span>
-    </netui-template:section>
-</netui-template:template>
+<%@ taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
+<netui:html>
+  <head>
+    <title>NetUI Error</title>
+    <style>
+    table {
+        border: solid 1pt #90180F;
+        background-color: #ffffff;
+    }
+    body {
+        margin: 20pt 5%;
+        background-color: #fdf4b6;
+        font-family: Arial, Helvetica, sans-serif;
+        font-size: 10pt;
+    }
+    .caption {
+        font-weight: bold;
+        font-size: 20pt;
+        text-align: left;
+        width: 500px
+    }
+    th {vertical-align: top;
+        text-align: right;
+        font-size: 12pt;
+        color: #90180F;
+        width: 100px;
+    }
+    td {
+        text-align: left;
+        }
+    hr {
+        color: #90180F;
+    }
+    .posTitle {
+        position: relative; 
+        color: #6C0C06;
+        left: -160pt; 
+        top: -12pt; 
+    }
+    .pfErrorLineOne {
+        color: red;
+        font-size: 12pt;
+        font-style: italic;
+    }
+    img {
+        border: solid 2pt #90180F;
+    }
+    </style>
+    <netui:base/>
+  </head>
+  <netui:body>
+    <div class="caption">
+    <netui:image src="${pageContext.request.contextPath}/resources/beehive/version1/images/error-header.jpg" width="338" height="96" alt="Page Flow Error"/>
+    <span class="posTitle">NetUI Error</span>
+    </div>
+    <table border="0" cellspacing='0' cellpadding='4'>
+       <c:if test="${request.errorMessage != null}">
+            <tr><th>Message:</th><td class="pfErrorLineOne"><netui:label value="${request.errorMessage}" defaultValue="&nbsp;"/></td></tr>
+       </c:if> 
+       <tr><th>Exception:</th><td class="pfErrorLineOne"><netui:exceptions showMessage="true"/></td></tr> 
+       <tr><td colspan="2" style="min-width:342"><hr></td></tr>     
+       <tr><th>Stack Trace:</th><td><netui:exceptions showMessage="false" showDevModeStackTrace="true"/></td></tr>
+    </table>      
+  </netui:body>
+</netui:html>
+<%-- Some browsers will not display this page unless the response status code is 200. --%>
+<% response.setStatus(200); %>

Modified: beehive/trunk/netui/test/webapps/jsf/web/error.jsp
URL: http://svn.apache.org/viewvc/beehive/trunk/netui/test/webapps/jsf/web/error.jsp?view=diff&rev=441394&r1=441393&r2=441394
==============================================================================
--- beehive/trunk/netui/test/webapps/jsf/web/error.jsp (original)
+++ beehive/trunk/netui/test/webapps/jsf/web/error.jsp Thu Sep  7 23:29:43 2006
@@ -1,18 +1,87 @@
-<!--Generated by Weblogic Workshop-->
+<%--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You 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.
+
+   $Header:$
+--%>
 <%@ page language="java" contentType="text/html;charset=UTF-8"%>
-<%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
-<%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
-<%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
-<netui-template:template templatePage="/resources/jsp/template.jsp">
-    <netui-template:setAttribute value="Error" name="title"/>
-    <netui-template:section name="bodySection">
-    <% response.setStatus( 200 ); %>
-    Internal Error:<br />
-    <span style="color:red;">
-    <netui:exceptions showMessage="true" showStackTrace="false"></netui:exceptions>
-    <span><br>
-    <span style="color:gray;font-size:10pt;font-family:arial;">
-    <netui:exceptions showMessage="false" showStackTrace="true"></netui:exceptions>
-    <span>
-    </netui-template:section>
-</netui-template:template>
+<%@ taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
+<netui:html>
+  <head>
+    <title>NetUI Error</title>
+    <style>
+    table {
+        border: solid 1pt #90180F;
+        background-color: #ffffff;
+    }
+    body {
+        margin: 20pt 5%;
+        background-color: #fdf4b6;
+        font-family: Arial, Helvetica, sans-serif;
+        font-size: 10pt;
+    }
+    .caption {
+        font-weight: bold;
+        font-size: 20pt;
+        text-align: left;
+        width: 500px
+    }
+    th {vertical-align: top;
+        text-align: right;
+        font-size: 12pt;
+        color: #90180F;
+        width: 100px;
+    }
+    td {
+        text-align: left;
+        }
+    hr {
+        color: #90180F;
+    }
+    .posTitle {
+        position: relative; 
+        color: #6C0C06;
+        left: -160pt; 
+        top: -12pt; 
+    }
+    .pfErrorLineOne {
+        color: red;
+        font-size: 12pt;
+        font-style: italic;
+    }
+    img {
+        border: solid 2pt #90180F;
+    }
+    </style>
+    <netui:base/>
+  </head>
+  <netui:body>
+    <div class="caption">
+    <netui:image src="${pageContext.request.contextPath}/resources/beehive/version1/images/error-header.jpg" width="338" height="96" alt="Page Flow Error"/>
+    <span class="posTitle">NetUI Error</span>
+    </div>
+    <table border="0" cellspacing='0' cellpadding='4'>
+       <c:if test="${request.errorMessage != null}">
+            <tr><th>Message:</th><td class="pfErrorLineOne"><netui:label value="${request.errorMessage}" defaultValue="&nbsp;"/></td></tr>
+       </c:if> 
+       <tr><th>Exception:</th><td class="pfErrorLineOne"><netui:exceptions showMessage="true"/></td></tr> 
+       <tr><td colspan="2" style="min-width:342"><hr></td></tr>     
+       <tr><th>Stack Trace:</th><td><netui:exceptions showMessage="false" showDevModeStackTrace="true"/></td></tr>
+    </table>      
+  </netui:body>
+</netui:html>
+<%-- Some browsers will not display this page unless the response status code is 200. --%>
+<% response.setStatus(200); %>