List of usage examples for org.springframework.validation Errors getGlobalErrorCount
int getGlobalErrorCount();
From source file:jetx.ext.springmvc.SpringMvcFunctions.java
/** * ? /*from w w w . ja v a 2 s. co m*/ */ public static int countGlobalErrors(JetPageContext ctx) { Errors errors = FunctionUtils.findErrors(ctx.getContext()); return errors != null ? errors.getGlobalErrorCount() : 0; }