]> WPIA git - gigi.git/commitdiff
Added 404 error page.. don't use it yet.
authorJanis Streib <janis@dogcraft.de>
Wed, 9 Jul 2014 22:18:40 +0000 (00:18 +0200)
committerFelix Dörre <felix@dogcraft.de>
Thu, 10 Jul 2014 22:35:15 +0000 (00:35 +0200)
src/org/cacert/gigi/pages/error/PageNotFound.java [new file with mode: 0644]
src/org/cacert/gigi/pages/error/PageNotFound.templ [new file with mode: 0644]

diff --git a/src/org/cacert/gigi/pages/error/PageNotFound.java b/src/org/cacert/gigi/pages/error/PageNotFound.java
new file mode 100644 (file)
index 0000000..72057a6
--- /dev/null
@@ -0,0 +1,23 @@
+package org.cacert.gigi.pages.error;
+
+import java.io.IOException;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.cacert.gigi.pages.Page;
+
+public class PageNotFound extends Page {
+
+       public PageNotFound(String title) {
+               super(title);
+       }
+
+       @Override
+       public void doGet(HttpServletRequest req, HttpServletResponse resp)
+                       throws IOException {
+               getDefaultTemplate().output(resp.getWriter(), Page.getLanguage(req),
+                               null);
+       }
+
+}
diff --git a/src/org/cacert/gigi/pages/error/PageNotFound.templ b/src/org/cacert/gigi/pages/error/PageNotFound.templ
new file mode 100644 (file)
index 0000000..f525603
--- /dev/null
@@ -0,0 +1,3 @@
+<h3><?=_File not found!?></h3>
+
+<p><?=_Due to recent site changes bookmarks may no longer be valid, please update your bookmarks.?></p>
\ No newline at end of file