import java.io.IOException;
import java.io.PrintWriter;
+import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
public class Verify extends Page {
- private static final SprintfCommand emailAddressVerified = new SprintfCommand("Email address ${subject} verified");
+ private static final SprintfCommand emailAddressVerified = new SprintfCommand("Email address {0} verified", Arrays.asList("${subject}"));
- private static final SprintfCommand domainVerified = new SprintfCommand("Domain ${subject} verified");
+ private static final SprintfCommand domainVerified = new SprintfCommand("Domain {0} verified", Arrays.asList("${subject}"));
private class VerificationForm extends Form {
@Override
public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {
- try {
- if (Form.getForm(req, VerificationForm.class).submit(resp.getWriter(), req)) {
- }
- } catch (GigiApiException e) {
- e.format(resp.getWriter(), getLanguage(req));
+ if (Form.getForm(req, VerificationForm.class).submitProtected(resp.getWriter(), req)) {
}
}