public abstract class LoopTagSupport extends TagSupport implements IterationTag, TryCatchFinally, LoopTag
| Modifier and Type | Field and Description |
|---|---|
protected int |
begin |
protected boolean |
beginSpecified |
protected ValueExpression |
deferredExpression |
protected int |
end |
protected boolean |
endSpecified |
protected java.lang.String |
itemId |
protected java.lang.String |
statusId |
protected int |
step |
protected boolean |
stepSpecified |
id, pageContextEVAL_BODY_AGAINEVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE| Constructor and Description |
|---|
LoopTagSupport() |
| Modifier and Type | Method and Description |
|---|---|
int |
doAfterBody()
Processed to check if the tag should loop.
|
void |
doCatch(java.lang.Throwable t)
Invoked if any exception is thrown while evaluating the tag.
|
void |
doFinally()
Invoked after doEndTag even with an exception.
|
int |
doStartTag()
Starts the iteration.
|
java.lang.Object |
getCurrent()
Returns the current object.
|
protected java.lang.String |
getDelims() |
LoopTagStatus |
getLoopStatus()
Returns the loop status.
|
protected abstract boolean |
hasNext()
Returns true if there are more values in the tag.
|
protected abstract java.lang.Object |
next()
Returns the next object for the tag.
|
protected abstract void |
prepare()
Called before iteration starts
|
void |
setVar(java.lang.String id)
Sets the var attribute.
|
void |
setVarStatus(java.lang.String id)
Sets the var status attribute.
|
protected void |
validateBegin()
Checks that the begin property makes sense.
|
protected void |
validateEnd()
Checks that the end property makes sense.
|
protected void |
validateStep()
Checks that the step property makes sense.
|
doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValueprotected int begin
protected boolean beginSpecified
protected ValueExpression deferredExpression
protected int end
protected boolean endSpecified
protected int step
protected boolean stepSpecified
protected java.lang.String itemId
protected java.lang.String statusId
public void setVar(java.lang.String id)
public void setVarStatus(java.lang.String id)
protected void validateBegin()
throws JspTagException
JspTagExceptionprotected void validateEnd()
throws JspTagException
JspTagExceptionprotected void validateStep()
throws JspTagException
JspTagExceptionprotected abstract void prepare()
throws JspTagException
JspTagExceptionprotected abstract java.lang.Object next()
throws JspTagException
JspTagExceptionprotected abstract boolean hasNext()
throws JspTagException
JspTagExceptionpublic java.lang.Object getCurrent()
getCurrent in interface LoopTagpublic LoopTagStatus getLoopStatus()
getLoopStatus in interface LoopTagpublic int doStartTag()
throws JspException
doStartTag in interface TagdoStartTag in class TagSupportJspExceptionpublic int doAfterBody()
throws JspException
TagSupportdoAfterBody in interface IterationTagdoAfterBody in class TagSupportJspExceptionpublic void doCatch(java.lang.Throwable t)
throws java.lang.Throwable
TryCatchFinallydoCatch in interface TryCatchFinallyt - the thrown exceptionjava.lang.Throwablepublic void doFinally()
TryCatchFinallydoFinally in interface TryCatchFinallyprotected java.lang.String getDelims()