public static void removeScopeAttribute(final String name, final String scope, final PageContext pageContext) {
		HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();
		String scopeValue = scope != null ? scope.toLowerCase() : SCOPE_PAGE;
		if (scopeValue.equals(SCOPE_PAGE)) {
			pageContext.removeAttribute(name);
		}
		else if (scopeValue.equals(SCOPE_REQUEST)) {
			request.removeAttribute(name);
		}
		else if (scopeValue.equals(SCOPE_SESSION)) {
			request.getSession().removeAttribute(name);
		}
		else if (scopeValue.equals(SCOPE_APPLICATION)) {
            request.getServletContext().removeAttribute(name);
        }
		else {
			throw new IllegalArgumentException("Invalid scope: " + scope);
        }
	}
public static void removeScopeAttribute(final String name, final String scope, final PageContext pageContext) {
		HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();
		String scopeValue = scope != null ? scope.toLowerCase() : SCOPE_PAGE;
		if (scopeValue.equals(SCOPE_PAGE)) {
			pageContext.removeAttribute(name);
		}
		else if (scopeValue.equals(SCOPE_REQUEST)) {
			request.removeAttribute(name);
		}
		else if (scopeValue.equals(SCOPE_SESSION)) {
			request.getSession().removeAttribute(name);
		}
		else if (scopeValue.equals(SCOPE_APPLICATION)) {
            request.getServletContext().removeAttribute(name);
        }
		else {
			throw new IllegalArgumentException("Invalid scope: " + scope);
        }
	}
public static void removeScopeAttribute ( final String name , final String scope , final PageContext pageContext ) { HttpServletRequest request = ( HttpServletRequest ) pageContext . getRequest ( ) ; String scopeValue = scope != null ? scope . toLowerCase ( ) : SCOPE_PAGE ; if ( scopeValue . equals ( SCOPE_PAGE ) ) { pageContext . removeAttribute ( name ) ; } else if ( scopeValue . equals ( SCOPE_REQUEST ) ) { request . removeAttribute ( name ) ; } else if ( scopeValue . equals ( SCOPE_SESSION ) ) { request . getSession ( ) . removeAttribute ( name ) ; } else if ( scopeValue . equals ( SCOPE_APPLICATION ) ) { request . getServletContext ( ) . removeAttribute ( name ) ; } else { throw new IllegalArgumentException ( "Invalid scope: " + scope ) ; } }
Removes scope attribute.
Removes scope attribute .