Example usage for javax.servlet.jsp PageContext removeAttribute

List of usage examples for javax.servlet.jsp PageContext removeAttribute

Introduction

In this page you can find the example usage for javax.servlet.jsp PageContext removeAttribute.

Prototype


abstract public void removeAttribute(String name);

Source Link

Document

Remove the object reference associated with the given name from all scopes.

Usage

From source file:com.tonbeller.wcf.expr.ExprUtils.java

public static ExprContext getExprContextAdapter(final PageContext pageContext) {
    return new ExprContext() {
        public Object findBean(String name) {
            return pageContext.findAttribute(name);
        }/*from w w w  . j a v  a2s  . co  m*/

        public void setBean(String name, Object bean) {
            if (bean == null)
                pageContext.removeAttribute(name);
            else
                pageContext.setAttribute(name, bean, PageContext.SESSION_SCOPE);
        }
    };
}

From source file:com.redhat.rhn.frontend.taglibs.list.ListTagUtil.java

/**
 * Clears a "persistent" counter.//from   w  w  w .j  av  a2s. com
 * @param ctx active PageContext
 * @param name name of counter
 */
public static void clearPersistentCounter(PageContext ctx, String name) {
    ctx.removeAttribute(name);
}

From source file:org.qifu.ui.UIComponentValueUtils.java

public static void removeIfResult(PageContext pageContext) {
    pageContext.removeAttribute(UIComponent.IfResultVariableName);
}