EmailValidator validator = new EmailValidator();
validator.setValidatorContext(new DelegatingValidatorContext(action));
validator.setFieldName("myEmail");
validator.setDefaultMessage("invalid email");
validator.setValueStack(ActionContext.getContext().getValueStack());
validator.validate(action);
return (action.getFieldErrors().size() == 0);
}
public boolean verifyEmailValidityWithExpression(final String email, final String expression) throws Exception {