X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;ds=inline;f=src%2Forg%2Fcacert%2Fgigi%2Fpages%2Forga%2FCreateOrgForm.java;h=086b3059cc591a6ca8bf66278039b379261cfdb2;hb=17a15662212d973d12ed4cea3f5eaa9c0d1169ed;hp=2d57a3c4af642c98a1e51df48b0ba1a4919cb4a4;hpb=bead06ac89a5fbe282dab187c5d1babbb7dcdf66;p=gigi.git diff --git a/src/org/cacert/gigi/pages/orga/CreateOrgForm.java b/src/org/cacert/gigi/pages/orga/CreateOrgForm.java index 2d57a3c4..086b3059 100644 --- a/src/org/cacert/gigi/pages/orga/CreateOrgForm.java +++ b/src/org/cacert/gigi/pages/orga/CreateOrgForm.java @@ -39,11 +39,7 @@ public class CreateOrgForm extends Form { public CreateOrgForm(HttpServletRequest hsr) { super(hsr); - try { - cs = new CountrySelector("C", false); - } catch (GigiApiException e) { - throw new Error(e); // should not happen - } + cs = new CountrySelector("C", false); } public CreateOrgForm(HttpServletRequest hsr, Organisation t) { @@ -51,11 +47,9 @@ public class CreateOrgForm extends Form { isEdit = true; result = t; o = t.getName(); - try { - cs = new CountrySelector("C", false, t.getState()); - } catch (GigiApiException e) { - throw new Error(e); - } + + cs = new CountrySelector("C", false, t.getState()); + st = t.getProvince(); l = t.getCity(); email = t.getContactEmail(); @@ -64,7 +58,7 @@ public class CreateOrgForm extends Form { } @Override - public boolean submit(PrintWriter out, HttpServletRequest req) throws GigiApiException { + public boolean submit(HttpServletRequest req) throws GigiApiException { String action = req.getParameter("action"); if (action == null) { return false;