public void doTag()
            throws JspException, IOException
    {
        String value = getBufferBody(true);
        String text = "";
        if (value.length() > 0)
            text = value;

        Object o = getParent();
        assert (o != null);
        if (!(o instanceof TreeItem)) {
            logger.error("Invalid Parent (expected a TreeItem):" + o.getClass().getName());
            return;
        }

        // assign the value to the parent's label value
        TreeItem ti = (TreeItem) o;
        ti.setItemLabel(text);
    }
public void doTag ( ) throws JspException , IOException { String value = getBufferBody ( true ) ; String text = "" ; if ( value . length ( ) > 0 ) text = value ; Object o = getParent ( ) ; assert ( o != null ) ; if ( ! ( o instanceof TreeItem ) ) { logger . error ( "Invalid Parent (expected a TreeItem):" + o . getClass ( ) . getName ( ) ) ; return ; } TreeItem ti = ( TreeItem ) o ; ti . setItemLabel ( text ) ; }
Add this node to the parent.
@throws JspException if a JSP exception has occurred