From 3814ddf510756ccc147782009972956f84a8ad7b Mon Sep 17 00:00:00 2001 From: Janis Streib Date: Thu, 10 Jul 2014 00:18:40 +0200 Subject: [PATCH] Added 404 error page.. don't use it yet. --- .../cacert/gigi/pages/error/PageNotFound.java | 23 +++++++++++++++++++ .../gigi/pages/error/PageNotFound.templ | 3 +++ 2 files changed, 26 insertions(+) create mode 100644 src/org/cacert/gigi/pages/error/PageNotFound.java create mode 100644 src/org/cacert/gigi/pages/error/PageNotFound.templ diff --git a/src/org/cacert/gigi/pages/error/PageNotFound.java b/src/org/cacert/gigi/pages/error/PageNotFound.java new file mode 100644 index 00000000..72057a66 --- /dev/null +++ b/src/org/cacert/gigi/pages/error/PageNotFound.java @@ -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 index 00000000..f525603e --- /dev/null +++ b/src/org/cacert/gigi/pages/error/PageNotFound.templ @@ -0,0 +1,3 @@ +

+ +

\ No newline at end of file -- 2.39.2