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 HeaderTei extends TagExtraInfo { 36 37 38 41 public VariableInfo [] getVariableInfo(TagData data) { 42 43 String className = null; 44 if (data.getAttribute("multiple") == null) 45 className = "java.lang.String"; 46 else 47 className = "java.lang.String[]"; 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 |