"Invalid mailing list");
}
}
for (int i = 0; i < chapter.getAdministrators().size(); i++) {
User u = chapter.getAdministrators().get(i);
if (u.getName() == null || u.getName().equals("")) {
errors.rejectValue("administrators[" + i + "].name", null, null,
"Name required");
}
if (u.getEmail() == null || u.getEmail().equals("")) {
errors.rejectValue("administrators[" + i + "].email", null, null,
"Email required");
} else if (!isValidEmail(u.getEmail())) {
errors.rejectValue("administrators[" + i + "].email", null, null,
"Invalid email");
}
}
}