1 16 17 package org.apache.taglibs.application; 18 19 import java.util.*; 20 import javax.servlet.*; 21 import javax.servlet.http.*; 22 import javax.servlet.jsp.*; 23 import javax.servlet.jsp.tagext.*; 24 25 44 45 public class RemoveAttributeTag extends TagSupport 46 { 47 private String name = null; 48 49 54 public final int doStartTag() throws JspException 55 { 56 pageContext.getServletContext().removeAttribute(name); 57 return SKIP_BODY; 58 } 59 60 65 public final void setName(String str) 66 { 67 name = str; 68 } 69 70 } 71 | Popular Tags |