📄 looptagsupport.html
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../javax/servlet/jsp/jstl/core/LoopTagStatus.html" title="interface in javax.servlet.jsp.jstl.core">LoopTagStatus</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../javax/servlet/jsp/jstl/core/LoopTagSupport.html#getLoopStatus()">getLoopStatus</A></B>()</CODE><BR> Retrieves a 'status' object to provide information about the current round of the iteration.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected abstract boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../javax/servlet/jsp/jstl/core/LoopTagSupport.html#hasNext()">hasNext</A></B>()</CODE><BR> Returns information concerning the availability of more items over which to iterate.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected abstract java.lang.Object</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../javax/servlet/jsp/jstl/core/LoopTagSupport.html#next()">next</A></B>()</CODE><BR> Returns the next object over which the tag should iterate.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../javax/servlet/jsp/jstl/core/LoopTagSupport.html#prepare()">prepare</A></B>()</CODE><BR> Prepares for a single tag invocation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../javax/servlet/jsp/jstl/core/LoopTagSupport.html#release()">release</A></B>()</CODE><BR> Releases any resources this LoopTagSupport may have (or inherit).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../javax/servlet/jsp/jstl/core/LoopTagSupport.html#setVar(java.lang.String)">setVar</A></B>(java.lang.String id)</CODE><BR> Sets the 'var' attribute.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../javax/servlet/jsp/jstl/core/LoopTagSupport.html#setVarStatus(java.lang.String)">setVarStatus</A></B>(java.lang.String statusId)</CODE><BR> Sets the 'varStatus' attribute.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../javax/servlet/jsp/jstl/core/LoopTagSupport.html#validateBegin()">validateBegin</A></B>()</CODE><BR> Ensures the "begin" property is sensible, throwing an exception expected to propagate up if it isn't</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../javax/servlet/jsp/jstl/core/LoopTagSupport.html#validateEnd()">validateEnd</A></B>()</CODE><BR> Ensures the "end" property is sensible, throwing an exception expected to propagate up if it isn't</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../javax/servlet/jsp/jstl/core/LoopTagSupport.html#validateStep()">validateStep</A></B>()</CODE><BR> Ensures the "step" property is sensible, throwing an exception expected to propagate up if it isn't</TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.servlet.jsp.tagext.TagSupport"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class javax.servlet.jsp.tagext.TagSupport</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.servlet.jsp.tagext.Tag"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface javax.servlet.jsp.tagext.Tag</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>doEndTag, getParent, setPageContext, setParent</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="begin"><!-- --></A><H3>begin</H3><PRE>protected int <B>begin</B></PRE><DL><DD>Starting index ('begin' attribute)<P><DL></DL></DL><HR><A NAME="end"><!-- --></A><H3>end</H3><PRE>protected int <B>end</B></PRE><DL><DD>Ending index of the iteration ('end' attribute). A value of -1 internally indicates 'no end specified', although accessors for the core JSTL tags do not allow this value to be supplied directly by the user.<P><DL></DL></DL><HR><A NAME="step"><!-- --></A><H3>step</H3><PRE>protected int <B>step</B></PRE><DL><DD>Iteration step ('step' attribute)<P><DL></DL></DL><HR><A NAME="beginSpecified"><!-- --></A><H3>beginSpecified</H3><PRE>protected boolean <B>beginSpecified</B></PRE><DL><DD>Boolean flag indicating whether 'begin' was specified.<P><DL></DL></DL><HR><A NAME="endSpecified"><!-- --></A><H3>endSpecified</H3><PRE>protected boolean <B>endSpecified</B></PRE><DL><DD>Boolean flag indicating whether 'end' was specified.<P><DL></DL></DL><HR><A NAME="stepSpecified"><!-- --></A><H3>stepSpecified</H3><PRE>protected boolean <B>stepSpecified</B></PRE><DL><DD>Boolean flag indicating whether 'step' was specified.<P><DL></DL></DL><HR><A NAME="itemId"><!-- --></A><H3>itemId</H3><PRE>protected java.lang.String <B>itemId</B></PRE><DL><DD>Attribute-exposing control<P><DL></DL></DL><HR><A NAME="statusId"><!-- --></A><H3>statusId</H3><PRE>protected java.lang.String <B>statusId</B></PRE><DL><DD>Attribute-exposing control<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="LoopTagSupport()"><!-- --></A><H3>LoopTagSupport</H3><PRE>public <B>LoopTagSupport</B>()</PRE><DL><DD>Constructs a new LoopTagSupport. As with TagSupport, subclasses should not implement constructors with arguments, and no-arguments constructors implemented by subclasses must call the superclass constructor.<P></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="next()"><!-- --></A><H3>next</H3><PRE>protected abstract java.lang.Object <B>next</B>() throws javax.servlet.jsp.JspTagException</PRE><DL><DD><p>Returns the next object over which the tag should iterate. This method must be provided by concrete subclasses of LoopTagSupport to inform the base logic about what objects it should iterate over.</p> <p>It is expected that this method will generally be backed by an Iterator, but this will not always be the case. In particular, if retrieving the next object raises the possibility of an exception being thrown, this method allows that exception to propagate back to the JSP container as a JspTagException; a standalone Iterator would not be able to do this. (This explains why LoopTagSupport does not simply call for an Iterator from its subtags.)</p><P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the java.lang.Object to use in the next round of iteration<DT><B>Throws:</B><DD><CODE>java.util.NoSuchElementException</CODE> - if next() is called but no new elements are available<DD><CODE>javax.servlet.jsp.JspTagException</CODE> - for other, unexpected exceptions</DL></DD></DL><HR><A NAME="hasNext()"><!-- --></A><H3>hasNext</H3><PRE>protected abstract boolean <B>hasNext</B>() throws javax.servlet.jsp.JspTagException</PRE><DL><DD><p>Returns information concerning the availability of more items over which to iterate. This method must be provided by concrete subclasses of LoopTagSupport to assist the iterative logic provided by the supporting base class.</p> <p>See <a href="#next()">next</a> for more information about the purpose and expectations behind this tag.</p><P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD><tt>true</tt> if there is at least one more item to iterate over, <tt>false</tt> otherwise<DT><B>Throws:</B><DD><CODE>javax.servlet.jsp.JspTagException</CODE><DT><B>See Also:</B><DD><A HREF="../../../../../javax/servlet/jsp/jstl/core/LoopTagSupport.html#next()"><CODE>next()</CODE></A></DL></DD></DL><HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -