public static boolean isExpression(String token, boolean isXml) {
    """
	Checks if the token is a runtime expression.
	In standard JSP syntax, a runtime expression starts with '<%' and
	ends with '%>'. When the JSP document is in XML syntax, a runtime
	expression starts with '%=' and ends with '%'.
	
	@param token The token to be checked
	return whether the token is a runtime expression or not.
    """
	String openExpr;
	String closeExpr;
	if (isXml) {
	    openExpr = OPEN_EXPR_XML;
	    closeExpr = CLOSE_EXPR_XML;
	} else {
	    openExpr = OPEN_EXPR;
	    closeExpr = CLOSE_EXPR;
	}
	if (token.startsWith(openExpr) && token.endsWith(closeExpr)) {
	    return true;
	} else {
	    return false;
	}
    }
public static boolean isExpression(String token, boolean isXml) {
	String openExpr;
	String closeExpr;
	if (isXml) {
	    openExpr = OPEN_EXPR_XML;
	    closeExpr = CLOSE_EXPR_XML;
	} else {
	    openExpr = OPEN_EXPR;
	    closeExpr = CLOSE_EXPR;
	}
	if (token.startsWith(openExpr) && token.endsWith(closeExpr)) {
	    return true;
	} else {
	    return false;
	}
    }
public static boolean isExpression ( String token , boolean isXml ) { String openExpr ; String closeExpr ; if ( isXml ) { openExpr = OPEN_EXPR_XML ; closeExpr = CLOSE_EXPR_XML ; } else { openExpr = OPEN_EXPR ; closeExpr = CLOSE_EXPR ; } if ( token . startsWith ( openExpr ) && token . endsWith ( closeExpr ) ) { return true ; } else { return false ; } }
Checks if the token is a runtime expression.
In standard JSP syntax, a runtime expression starts with '<%' and
ends with '%>'. When the JSP document is in XML syntax, a runtime
expression starts with '%=' and ends with '%'.

@param token The token to be checked
return whether the token is a runtime expression or not.
Checks if the token is a runtime expression . In standard JSP syntax a runtime expression starts with <% and ends with % > . When the JSP document is in XML syntax a runtime expression starts with % = and ends with % .