code: public int doEndTag() throws JspException
      {
          ServletRequest req = pageContext.getRequest();
          Object textObject = null;
  
          // Get the value of the data source.  The object will not be null.
          Object val = evaluateDataSource();
          textObject = (val != null) ? val : "";
          assert(textObject != null);
  
          // setup the rest of the state.
          ByRef ref = new ByRef();
          nameHtmlControl(_state, ref);
  
          _state.disabled = isDisabled();
  
          // if there were expression errors report them
          if (hasErrors())
              return reportAndExit(EVAL_PAGE);
  
          // if there were format errors then report them
          if (_formatErrors) {
              if (bodyContent != null) {
                  String value = bodyContent.getString().trim();
                  bodyContent.clearBody();
                  write(value);
              }
          }
  
          // create the input tag.
          WriteRenderAppender writer = new WriteRenderAppender(pageContext);
          TagRenderingBase br = TagRenderingBase.Factory.getRendering(TagRenderingBase.TEXT_AREA_TAG, req);
          br.doStartTag(writer, _state);
  
          // create the text value which will be found inside the textarea.
          if ((textObject == null) || (textObject.toString().length() == 0)) {
              textObject = _defaultValue;
          }
  
          String text = formatText(textObject);
          if (text != null) {
              // make sure leading blank line in the text value is not interpreted
              // just as formatting... force a new line for formatting
              if (text.startsWith("\n") || text.startsWith("\r")) {
                  writer.append("\n");
              }
              HtmlUtils.filter(text, writer);
          }
  
          //results.append(text);
          br.doEndTag(writer);
  
          // if there are errors report them...
          if (hasErrors())
              return reportAndExit(EVAL_PAGE);
  
          // report any script
          if (!ref.isNull())
              write((String) ref.getRef());
  
          localRelease();
          return EVAL_PAGE;
      }
docs: Render the TextArea.
  @throws JspException if a JSP exception has occurred