}
@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()) {
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");
}