You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shale.apache.org by gv...@apache.org on 2006/08/16 03:11:04 UTC
svn commit: r431753 - in
/shale/sandbox/shale-clay-mailreader/src/main/webapp: WEB-INF/web.xml
pages/error.html
Author: gvanmatre
Date: Tue Aug 15 18:11:04 2006
New Revision: 431753
URL: http://svn.apache.org/viewvc?rev=431753&view=rev
Log:
Added an example of using the standard error-page to handle http error codes.
Added:
shale/sandbox/shale-clay-mailreader/src/main/webapp/pages/error.html (with props)
Modified:
shale/sandbox/shale-clay-mailreader/src/main/webapp/WEB-INF/web.xml
Modified: shale/sandbox/shale-clay-mailreader/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/shale/sandbox/shale-clay-mailreader/src/main/webapp/WEB-INF/web.xml?rev=431753&r1=431752&r2=431753&view=diff
==============================================================================
--- shale/sandbox/shale-clay-mailreader/src/main/webapp/WEB-INF/web.xml (original)
+++ shale/sandbox/shale-clay-mailreader/src/main/webapp/WEB-INF/web.xml Tue Aug 15 18:11:04 2006
@@ -157,6 +157,11 @@
</servlet-mapping>
-->
+ <error-page>
+ <error-code>404</error-code>
+ <location>/pages/error.html</location>
+ </error-page>
+
<mime-mapping>
<extension>cxv</extension>
<mime-type>text/html</mime-type>
Added: shale/sandbox/shale-clay-mailreader/src/main/webapp/pages/error.html
URL: http://svn.apache.org/viewvc/shale/sandbox/shale-clay-mailreader/src/main/webapp/pages/error.html?rev=431753&view=auto
==============================================================================
--- shale/sandbox/shale-clay-mailreader/src/main/webapp/pages/error.html (added)
+++ shale/sandbox/shale-clay-mailreader/src/main/webapp/pages/error.html Tue Aug 15 18:11:04 2006
@@ -0,0 +1,22 @@
+<html>
+<head>
+<title>Error</title>
+</head>
+
+<body>
+<!-- Remove the comment and non-blank spaces and this page will
+ not be shown when using IE -->
+
+<H1>Page Not Found</H1>
+
+
+
+
+
+
+
+
+
+
+</body>
+</html>
Propchange: shale/sandbox/shale-clay-mailreader/src/main/webapp/pages/error.html
------------------------------------------------------------------------------
svn:eol-style = native