for (List<ValidationError> listOfErrors : errors.values()) {
for (Map.Entry<String,List<ValidationError>> entry : errors.entrySet()) { String parameterName = entry.getKey(); List<ValidationError> listOfErrors = entry.getValue();
    protected Resolution handleValidationErrors(ExecutionContext ctx) throws Exception {        ActionBean bean            = ctx.getActionBean();        ActionBeanContext context  = ctx.getActionBeanContext();        ValidationErrors errors    = context.getValidationErrors();        HttpServletRequest request = context.getRequest();        Resolution resolution = null;        // If we have errors, add the action path to them        if (errors.size() > 0) {            String formAction = (String) request.getAttribute(ActionResolver.RESOLVED_ACTION);            /** Since we don't pass form action down the stack, we add it to the errors here. */            for (List<ValidationError> listOfErrors : errors.values()) {                for (ValidationError error : listOfErrors) {                    error.setActionPath(formAction);                }            }        }        // Now if we have errors and the bean wants to handle them...        if (errors.size() > 0 && bean instanceof ValidationErrorHandler) {            resolution = ((ValidationErrorHandler) bean).handleValidationErrors(errors);        }        // If there are still errors see if we need to lookup the resolution        if (errors.size() > 0 && resolution == null) {            resolution  = context.getSourcePageResolution();        }        return resolution;    }