1 package org.cacert.gigi.pages;
3 import java.io.IOException;
5 import javax.servlet.http.HttpServletRequest;
6 import javax.servlet.http.HttpServletResponse;
8 public class PolicyRedir extends Page {
13 public static final String PATH = "/policy/*";
15 public boolean beforeTemplate(HttpServletRequest req,
16 HttpServletResponse resp) throws IOException {
17 String substring = req.getPathInfo().substring(PATH.length() - 1);
18 resp.sendRedirect("/static/policy/"
19 + substring.replace(".php", ".html"));
23 public boolean needsLogin() {
27 public void doGet(HttpServletRequest req, HttpServletResponse resp)