1 23 package org.infoglue.deliver.taglib.common; 24 25 import javax.servlet.jsp.JspException ; 26 27 import org.infoglue.deliver.taglib.TemplateControllerTag; 28 29 32 33 public class GetCookieTag extends TemplateControllerTag 34 { 35 38 private static final long serialVersionUID = 8603406098980150888L; 39 40 43 private String name; 44 45 46 49 public GetCookieTag() 50 { 51 super(); 52 } 53 54 60 public int doEndTag() throws JspException 61 { 62 String cookieValue = this.getController().getCookie(name); 63 64 setResultAttribute(cookieValue); 65 66 return EVAL_PAGE; 67 } 68 69 public void setName(String name) throws JspException 70 { 71 this.name = evaluateString("SetCookie", "name", name); 72 } 73 } 74 | Popular Tags |