public List<ValidationError> errors(String fieldName) { ExecutionContext ec = ExecutionContext.currentContext(); ActionBeanContext abc = ec.getActionBeanContext(); List<ValidationError> res = null; if (abc != null) { ValidationErrors errors = abc.getValidationErrors(); if (errors != null) { res = errors.get(fieldName); } } return res == null ? Collections.emptyList() : res; }