public static void addBindingUpdateError ( ServletRequest request , String expression , String message , Throwable cause ) { Map errors = ( Map ) request . getAttribute ( BINDING_UPDATE_ERRORS_ATTR ) ; if ( errors == null ) { errors = new LinkedHashMap ( ) ; request . setAttribute ( BINDING_UPDATE_ERRORS_ATTR , errors ) ; } errors . put ( expression , new BindingUpdateError ( expression , message , cause ) ) ; }
Add a BindingUpdateError to the request .