1 package org.cacert.gigi.pages.account;
3 import java.io.IOException;
4 import java.util.LinkedList;
6 import javax.servlet.http.HttpServletRequest;
7 import javax.servlet.http.HttpServletResponse;
9 import org.cacert.gigi.output.DataTable;
10 import org.cacert.gigi.output.DataTable.Cell;
11 import org.cacert.gigi.pages.Page;
13 public class MailAdd extends Page{
14 public static final String DEFAULT_PATH = "/account/mail/new";
15 public MailAdd(String title) {
20 public void doGet(HttpServletRequest req, HttpServletResponse resp)
22 LinkedList<Cell> cells = new LinkedList<>();
23 cells.add(new Cell("Add Email", true, 2, "class=\"title\""));
24 cells.add(new Cell("Email Address", true));
25 cells.add(new Cell("<input type=\"text\" name=\"newemail\">", false));
26 String trans = getLanguage(req).getTranslation("I own or am authorised to control this email address");
27 cells.add(new Cell("<input type=\"submit\" name=\"process\" value=\""
28 + trans + "\">", false, 2));
29 DataTable dt = new DataTable(2, cells);
30 dt.output(resp.getWriter(), getLanguage(req));