protected void onInvalidMarkup ( AppendingStringBuffer responseBuffer , ValidationReport report ) { String head = report . getHeadMarkup ( ) ; String body = report . getBodyMarkup ( ) ; int indexOfHeadClose = responseBuffer . lastIndexOf ( "</head>" ) ; responseBuffer . insert ( indexOfHeadClose , head ) ; int indexOfBodyClose = responseBuffer . lastIndexOf ( "</body>" ) ; responseBuffer . insert ( indexOfBodyClose , body ) ; }
Called when the validated markup contains errors .