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 .