Class ForTokensTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- javax.servlet.jsp.jstl.core.LoopTagSupport
-
- org.apache.taglibs.standard.tag.common.core.ForTokensSupport
-
- org.apache.taglibs.standard.tag.el.core.ForTokensTag
-
- All Implemented Interfaces:
java.io.Serializable,LoopTag,javax.servlet.jsp.tagext.IterationTag,javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.Tag,javax.servlet.jsp.tagext.TryCatchFinally
public class ForTokensTag extends ForTokensSupport implements LoopTag, javax.servlet.jsp.tagext.IterationTag
A handler for <forTokens> that accepts attributes as Strings and evaluates them as expressions at runtime.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringbegin_private java.lang.Stringdelims_private java.lang.Stringend_private java.lang.Stringitems_private java.lang.Stringstep_-
Fields inherited from class org.apache.taglibs.standard.tag.common.core.ForTokensSupport
currentIndex, delims, items, st
-
Fields inherited from class javax.servlet.jsp.jstl.core.LoopTagSupport
begin, beginSpecified, deferredExpression, end, endSpecified, itemId, statusId, step, stepSpecified
-
-
Constructor Summary
Constructors Constructor Description ForTokensTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdoStartTag()Begins iterating by processing the first item.private voidevaluateExpressions()private voidinit()voidrelease()Releases any resources this LoopTagSupport may have (or inherit).voidsetBegin(java.lang.String begin_)voidsetDelims(java.lang.String delims_)voidsetEnd(java.lang.String end_)voidsetItems(java.lang.String items_)voidsetStep(java.lang.String step_)-
Methods inherited from class org.apache.taglibs.standard.tag.common.core.ForTokensSupport
getDelims, hasNext, next, prepare
-
Methods inherited from class javax.servlet.jsp.jstl.core.LoopTagSupport
doAfterBody, doCatch, doFinally, getCurrent, getLoopStatus, setVar, setVarStatus, validateBegin, validateEnd, validateStep
-
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, 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.jstl.core.LoopTag
getCurrent, getLoopStatus
-
-
-
-
Method Detail
-
doStartTag
public int doStartTag() throws javax.servlet.jsp.JspExceptionDescription copied from class:LoopTagSupportBegins iterating by processing the first item.- Specified by:
doStartTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classLoopTagSupport- Throws:
javax.servlet.jsp.JspException
-
release
public void release()
Description copied from class:LoopTagSupportReleases any resources this LoopTagSupport may have (or inherit).- Specified by:
releasein interfacejavax.servlet.jsp.tagext.Tag- Overrides:
releasein classForTokensSupport
-
setBegin
public void setBegin(java.lang.String begin_)
-
setEnd
public void setEnd(java.lang.String end_)
-
setStep
public void setStep(java.lang.String step_)
-
setItems
public void setItems(java.lang.String items_)
-
setDelims
public void setDelims(java.lang.String delims_)
-
init
private void init()
-
evaluateExpressions
private void evaluateExpressions() throws javax.servlet.jsp.JspException- Throws:
javax.servlet.jsp.JspException
-
-