private void checkUnbalancedEndTag() throws JasperException {

        if (!reader.matches("</")) {
            return;
        }

        // Check for unbalanced standard actions
        if (reader.matches("jsp:")) {
            err.jspError(start, "jsp.error.unbalanced.endtag", "jsp:");
        }

        // Check for unbalanced custom actions
        String tagName = reader.parseToken(false);
        int i = tagName.indexOf(':');
        if (i == -1 || pageInfo.getURI(tagName.substring(0, i)) == null) {
            reader.reset(start);
            return;
        }

        err.jspError(start, "jsp.error.unbalanced.endtag", tagName);
    }
private void checkUnbalancedEndTag() throws JasperException {

        if (!reader.matches("</")) {
            return;
        }

        
        if (reader.matches("jsp:")) {
            err.jspError(start, "jsp.error.unbalanced.endtag", "jsp:");
        }

        
        String tagName = reader.parseToken(false);
        int i = tagName.indexOf(':');
        if (i == -1 || pageInfo.getURI(tagName.substring(0, i)) == null) {
            reader.reset(start);
            return;
        }

        err.jspError(start, "jsp.error.unbalanced.endtag", tagName);
    }
private void checkUnbalancedEndTag ( ) throws JasperException { if ( ! reader . matches ( "</" ) ) { return ; } // Check for unbalanced standard actions if ( reader . matches ( "jsp:" ) ) { err . jspError ( start , "jsp.error.unbalanced.endtag" , "jsp:" ) ; } // Check for unbalanced custom actions String tagName = reader . parseToken ( false ) ; int i = tagName . indexOf ( ' ' ) ; if ( i == - 1 || pageInfo . getURI ( tagName . substring ( 0 , i ) ) == null ) { reader . reset ( start ) ; return ; } err . jspError ( start , "jsp.error.unbalanced.endtag" , tagName ) ; }
/*
Flag as error if an unbalanced end tag appears by itself.
/ * Flag as error if an unbalanced end tag appears by itself .