code: public static void reportCollectedErrors(PageContext pc, JspTag tag)
      {
          IErrorReporter er = getErrorReporter(tag);
          if (er == null)
              return;
  
          assert (pc != null);
          ArrayList errors = er.returnErrors();
          if (errors == null || errors.size() == 0)
              return;
  
          assert(errors.size() > 0);
  
          String s;
          // write the error header
          s = Bundle.getString("Footer_Error_Header");
          write(pc, s);
  
          int cnt = errors.size();
          Object[] args = new Object[5];
          for (int i = 0; i < cnt; i++) {
              Object o = errors.get(i);
              assert (o != null);
              if (o instanceof EvalErrorInfo) {
                  EvalErrorInfo err = (EvalErrorInfo) o;
                  args[0] = Integer.toString(err.errorNo);
                  args[1] = err.tagType;
                  args[2] = err.attr;
                  args[3] = err.expression;
                  args[4] = err.evalExcp.getMessage();
                  s = Bundle.getString("Footer_Error_Expr_Body", args);
                  write(pc, s);
              }
              else if (o instanceof TagErrorInfo) {
                  TagErrorInfo tei = (TagErrorInfo) o;
                  args[0] = Integer.toString(tei.errorNo);
                  args[1] = tei.tagType;
                  args[2] = tei.message;
                  s = Bundle.getString("Footer_Error_Tag_Body", args);
                  write(pc, s);
              }
          }
  
          // write the error footer
          s = Bundle.getString("Footer_Error_Footer");
          write(pc, s);
      }
docs: This method get the current errors and write the formated output
  @param pc