code: public int doEndTag() throws JspException
      {
          popIdScope();
          
          // if there are errors then we should output the error table
          ErrorHandling.reportCollectedErrors(pageContext, this);
  
          // The body tag may cause the scope Div to be closed, if not we must do it now
          //if (getIdScope() != null && !_scopeEnded) {
          //    _writer.append("</div>");
          //}
  
          // the script can be written out by another tag,  typically this would be the <body> tag.
          writeScript(_writer);
  
          // close the html tag
          if (!_scopeEnded)
              _writer.append("\n");
          _br.doEndTag(_writer);
          localRelease();
          return EVAL_PAGE;
      }
docs: Write out the body content and report any errors that occured.
  @throws JspException if a JSP exception has occurred