public static int getScopeId ( String scope ) throws JspTagException { if ( scope == null || PAGE . equals ( scope ) ) return PageContext . PAGE_SCOPE ; else if ( REQUEST . equals ( scope ) ) return PageContext . REQUEST_SCOPE ; else if ( SESSION . equals ( scope ) ) return PageContext . SESSION_SCOPE ; else if ( APPLICATION . equals ( scope ) ) return PageContext . APPLICATION_SCOPE ; else throw new LocalizedJspTagException ( ApplicationResources . accessor , "Scope.scope.invalid" , scope ) ; }
Gets the PageContext scope value for the textual scope name .