bundles/org.apache.jasper.glassfish/src/org/apache/jasper/compiler/JspUtil.java
public static void checkScope(String scope, Node n, ErrorDispatcher err)
            throws JasperException {
	if (scope != null && !scope.equals("page") && !scope.equals("request")
		&& !scope.equals("session") && !scope.equals("application")) {
	    err.jspError(n, "jsp.error.invalid.scope", scope);
	}
    }
public static void checkScope(String scope, Node n, ErrorDispatcher err)
            throws JasperException {
	if (scope != null && !scope.equals("page") && !scope.equals("request")
		&& !scope.equals("session") && !scope.equals("application")) {
	    err.jspError(n, "jsp.error.invalid.scope", scope);
	}
    }
Checks to see if the given scope is valid.

@param scope The scope to be checked
@param n The Node containing the 'scope' attribute whose value is to be
checked
@param err error dispatcher

@throws JasperException if scope is not null and different from
&quot;page&quot;, &quot;request&quot;, &quot;session&quot;, and
&quot;application&quot;