code: public void reportErrors(Writer writer, String tagName)
              throws JspException
      {
          try {
              writer.write(getErrorsReport(tagName));
          }
          catch (IOException e) {
              JspException jspException = new JspException(e.getMessage(), e);
  
              // todo: future cleanup
              // The 2.5 Servlet api will set the initCause in the Throwable superclass during construction,
              // this will cause an IllegalStateException on the following call.
              if (jspException.getCause() == null) {
                  jspException.initCause(e);
              }
              throw jspException;
          }
      }
docs: This method will write out the <code>String</code> returned by <code>getErrorsReport</code> to the
  response output stream.
  @throws JspException if <code>write</code> throws an exception.
  @see #getErrorsReport