code: public static Object get(PageContext pc, String name, int scope) {
          switch (scope) {
              case PageContext.PAGE_SCOPE:
                  return pc.getAttribute(name + PAGE_SCOPE_SUFFIX, scope);
              case PageContext.REQUEST_SCOPE:
                  return pc.getAttribute(name + REQUEST_SCOPE_SUFFIX, scope);
              case PageContext.SESSION_SCOPE:
                  return get(pc.getSession(), name);
              case PageContext.APPLICATION_SCOPE:
                  return pc.getAttribute(name + APPLICATION_SCOPE_SUFFIX, scope);
              default:
                  throw new IllegalArgumentException("unknown scope");
          }
      }
docs: Looks up a configuration variable in the given scope.
  <p> The lookup of configuration variables is performed as if each scope
  had its own name space, that is, the same configuration variable name
  in one scope does not replace one stored in a different scope.
  
  @param pc    Page context in which the configuration variable is to be
  looked up
  @param name  Configuration variable name
  @param scope Scope in which the configuration variable is to be looked
  up
  @return The <tt>java.lang.Object</tt> associated with the configuration
  variable, or null if it is not defined.