1 16 17 package org.apache.taglibs.standard.tag.rt.core; 18 19 import java.util.ArrayList ; 20 21 import javax.servlet.jsp.JspTagException ; 22 import javax.servlet.jsp.jstl.core.LoopTag; 23 import javax.servlet.jsp.tagext.IterationTag ; 24 25 import org.apache.taglibs.standard.tag.common.core.ForEachSupport; 26 27 33 34 public class ForEachTag 35 extends ForEachSupport 36 implements LoopTag, IterationTag 37 { 38 39 42 public void setBegin(int begin) throws JspTagException { 44 this.beginSpecified = true; 45 this.begin = begin; 46 validateBegin(); 47 } 48 49 public void setEnd(int end) throws JspTagException { 51 this.endSpecified = true; 52 this.end = end; 53 validateEnd(); 54 } 55 56 public void setStep(int step) throws JspTagException { 58 this.stepSpecified = true; 59 this.step = step; 60 validateStep(); 61 } 62 63 public void setItems(Object o) throws JspTagException { 64 if (o == null) 66 rawItems = new ArrayList (); 67 else 68 rawItems = o; 69 } 70 } 71 | Popular Tags |