X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;ds=inline;f=src%2Forg%2Fcacert%2Fgigi%2FGigi.java;h=7e0b3b5569a3681c1625f79d2f8ef4f55699fbdc;hb=d2a1e35d319f56baf28f8e96d7fb2da154b4aa3b;hp=8c4a234c5a30a3f14ab9fa26eb12e7fd3745a573;hpb=98aa1434dc5e06971dcd35f6b9bd335216edce43;p=gigi.git diff --git a/src/org/cacert/gigi/Gigi.java b/src/org/cacert/gigi/Gigi.java index 8c4a234c..7e0b3b55 100644 --- a/src/org/cacert/gigi/Gigi.java +++ b/src/org/cacert/gigi/Gigi.java @@ -2,6 +2,7 @@ package org.cacert.gigi; import java.io.IOException; import java.io.PrintWriter; +import java.io.UnsupportedEncodingException; import java.security.KeyStore; import java.security.cert.X509Certificate; import java.util.Calendar; @@ -149,7 +150,11 @@ public class Gigi extends HttpServlet { } } - putPage("/wot/rules", new StaticPage("Web of Trust Rules", AssurePage.class.getResourceAsStream("Rules.templ")), "Web of Trust"); + try { + putPage("/wot/rules", new StaticPage("Web of Trust Rules", AssurePage.class.getResourceAsStream("Rules.templ")), "Web of Trust"); + } catch (UnsupportedEncodingException e) { + new ServletException(e); + } baseTemplate = new Template(Gigi.class.getResource("Gigi.templ")); rootMenu = new Menu("Main"); Menu about = new Menu("About CAcert.org");