public void setJspContext(JspContext ctx) { super.setJspContext(ctx); java.util.ArrayList _jspx_nested = null; java.util.ArrayList _jspx_at_begin = null; java.util.ArrayList _jspx_at_end = null; this.jspContext = new org.apache.jasper.runtime.JspContextWrapper( ctx, _jspx_nested, _jspx_at_begin, _jspx_at_end, null); }
@Override public void doTag() throws JspException, IOException { Collection itemList = (Collection) getJspContext().getAttribute(collection); for (Object o : itemList) { // 将集合中的元素设置到页面 getJspContext().setAttribute(item, o); // 输出标签体 getJspBody().invoke(null); } super.doTag(); }
@Override public void setJspBody(JspFragment paramJspFragment) { // TODO Auto-generated method stub System.out.println("Calling the setJspBody() " + className); super.setJspBody(paramJspFragment); }
@Override public void setParent(JspTag paramJspTag) { // TODO Auto-generated method stub super.setParent(paramJspTag); System.out.println("Calling the setParent() " + className); }
@Override public void setJspContext(JspContext paramJspContext) { // TODO Auto-generated method stub System.out.println("Calling the setJspContext() " + className); super.setJspContext(paramJspContext); }