|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.jstl.core.LoopTagSupport
public abstract class LoopTagSupport
| Field Summary | |
|---|---|
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
|
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
id, pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
|---|
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Constructor Summary | |
|---|---|
LoopTagSupport()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
doEndTag, getParent, release, setPageContext, setParent |
| Field Detail |
|---|
protected 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
| Constructor Detail |
|---|
public LoopTagSupport()
| Method Detail |
|---|
public void setVar(java.lang.String id)
public void setVarStatus(java.lang.String id)
protected void validateBegin()
throws JspTagException
JspTagException
protected void validateEnd()
throws JspTagException
JspTagException
protected void validateStep()
throws JspTagException
JspTagException
protected abstract void prepare()
throws JspTagException
JspTagException
protected abstract java.lang.Object next()
throws JspTagException
JspTagException
protected abstract boolean hasNext()
throws JspTagException
JspTagExceptionpublic java.lang.Object getCurrent()
getCurrent in interface LoopTagpublic LoopTagStatus getLoopStatus()
getLoopStatus in interface LoopTag
public int doStartTag()
throws JspException
doStartTag in interface TagdoStartTag in class TagSupportJspException
public int doAfterBody()
throws JspException
TagSupport
doAfterBody in interface IterationTagdoAfterBody in class TagSupportJspException
public void doCatch(java.lang.Throwable t)
throws java.lang.Throwable
TryCatchFinally
doCatch in interface TryCatchFinallyt - the thrown exception
java.lang.Throwablepublic void doFinally()
TryCatchFinally
doFinally in interface TryCatchFinallyprotected java.lang.String getDelims()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||