1 25 26 29 30 package net.killingar.webwork.view.taglib; 31 32 import javax.servlet.jsp.JspException ; 33 import javax.servlet.jsp.PageContext ; 34 35 public class ContextTag extends webwork.view.taglib.WebWorkTagSupport 36 { 37 protected String valueAttr; 39 protected Boolean escape; 40 41 public void setValue(String inName) 43 { 44 valueAttr = inName; 45 } 46 47 public int doStartTag() throws JspException 49 { 50 Object value = findValue(valueAttr); 51 52 String id = getId(); 53 54 pageContext.setAttribute(id, value); 55 pageContext.setAttribute(id, value, PageContext.REQUEST_SCOPE); 56 57 return SKIP_BODY; 58 } 59 60 public int doEndTag() throws JspException 61 { 62 return EVAL_PAGE; 63 } 64 } | Popular Tags |