code: public void setScope(String scopeName) {
          if ("page".equals(scopeName)) {
              scope = PageContext.PAGE_SCOPE;
          }
          else if ("request".equals(scopeName)) {
              scope = PageContext.REQUEST_SCOPE;
          }
          else if ("session".equals(scopeName)) {
              scope = PageContext.SESSION_SCOPE;
          }
          else if ("application".equals(scopeName)) {
              scope = PageContext.APPLICATION_SCOPE;
          }
      }
docs: Setter method for the scope of the variable to hold the
  result.