]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/pages/account/domain/DomainAddForm.java
upd: enforce a more strict Form call pattern.
[gigi.git] / src / org / cacert / gigi / pages / account / domain / DomainAddForm.java
index 7625abc07a0768e1f0a46cde76900827bc47d7d2..584821796f6496b6e657d4a33a573421ba9e7aba 100644 (file)
@@ -28,7 +28,7 @@ public class DomainAddForm extends Form {
     }
 
     @Override
-    public boolean submit(HttpServletRequest req) throws GigiApiException {
+    public SubmissionResult submit(HttpServletRequest req) throws GigiApiException {
         try {
             String parameter = req.getParameter("newdomain");
             if (parameter.trim().isEmpty()) {
@@ -37,7 +37,7 @@ public class DomainAddForm extends Form {
             Domain d = new Domain(target, target, parameter);
             pcf.setTarget(d);
             pcf.submit(req);
-            return true;
+            return new RedirectResult(DomainOverview.PATH);
         } catch (NumberFormatException e) {
             throw new GigiApiException("A number could not be parsed");
         }