FileDocCategorySizeDatePackage
ForTokensSupport.javaAPI DocGlassfish v2 API4794Sat May 05 19:17:52 BST 2007org.apache.taglibs.standard.tag.common.core

ForTokensSupport

public abstract class ForTokensSupport extends javax.servlet.jsp.jstl.core.LoopTagSupport

Support for tag handlers for <forTokens>, the tokenizing iteration tag in JSTL 1.0. This class extends LoopTagSupport and provides ForTokens-specific functionality. The rtexprvalue and expression-evaluating libraries each have handlers that extend this class.

see
javax.servlet.jsp.jstl.core.LoopTagSupport
author
Shawn Bayern

Fields Summary
protected Object
items
protected String
delims
protected StringTokenizer
st
Constructors Summary
Methods Summary
protected java.lang.StringgetDelims()

        return delims;
    
protected booleanhasNext()

        return st.hasMoreElements();
    
protected java.lang.Objectnext()

        return st.nextElement();
    
protected voidprepare()

        if (items instanceof ValueExpression) {
            deferredExpression = (ValueExpression) items;
            items = deferredExpression.getValue(pageContext.getELContext());
        }
        if (!(items instanceof String)) {
            throw new JspTagException(
                Resources.getMessage("FORTOKENS_BAD_ITEMS"));
        }
        st = new StringTokenizer((String)items, delims);
    
public voidrelease()

        super.release();
        items = delims = null;
        st = null;
        deferredExpression = null;