ActionBean bean            = ctx.getActionBean(); ActionBeanContext context  = ctx.getActionBeanContext(); ValidationErrors errors    = context.getValidationErrors(); HttpServletRequest request = context.getRequest(); Resolution resolution = null;   fillInValidationErrors(errors, request);   if (errors.size() > 0 && bean instanceof ValidationErrorHandler) { resolution = ((ValidationErrorHandler) bean).handleValidationErrors(errors); }   if (errors.size() > 0 && resolution == null) { resolution  = context.getSourcePageResolution(); }  return resolution;
return DispatcherHelper.handleValidationErrors(ctx);
    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        fillInValidationErrors(errors, request);        // 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;    }