1 18 19 20 package org.apache.struts.taglib.bean; 21 22 23 import javax.servlet.jsp.tagext.TagData ; 24 import javax.servlet.jsp.tagext.TagExtraInfo ; 25 import javax.servlet.jsp.tagext.VariableInfo ; 26 27 28 34 35 public class CookieTei extends TagExtraInfo { 36 37 38 41 public VariableInfo [] getVariableInfo(TagData data) { 42 43 String className = null; 44 if (data.getAttribute("multiple") == null) 45 className = "javax.servlet.http.Cookie"; 46 else 47 className = "javax.servlet.http.Cookie[]"; 48 return new VariableInfo [] { 49 new VariableInfo (data.getAttributeString("id"), 50 className, 51 true, 52 VariableInfo.AT_BEGIN) 53 }; 54 55 } 56 57 58 } 59 | Popular Tags |