- try {
- if (form.submit(out, req)) {
- out.println(translate(req, "Verification complete."));
- return;
- }
- } catch (GigiApiException e) {
- e.format(out, Page.getLanguage(req));
- form.output(out, getLanguage(req), new HashMap<String, Object>());
+ if (form.submitProtected(out, req)) {
+ out.println(translate(req, "Verification complete."));
+ return;