tag.html

来自「SUN公司官方J2EE中文帮助文档 应该不错 有兴趣的下来看看 html格式的」· HTML 代码 · 共 488 行 · 第 1/2 页

HTML
488
字号

<!-- ============ FIELD DETAIL =========== -->

<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="SKIP_BODY"><!-- --></A><H3>
SKIP_BODY</H3>
<PRE>
public static final int <B>SKIP_BODY</B></PRE>
<DL>
<DD>Skip body evaluation.
 Valid return value for doStartTag and doAfterBody.</DL>
<HR>

<A NAME="EVAL_BODY_INCLUDE"><!-- --></A><H3>
EVAL_BODY_INCLUDE</H3>
<PRE>
public static final int <B>EVAL_BODY_INCLUDE</B></PRE>
<DL>
<DD>Evaluate body into existing out stream.
 Valid return value for doStartTag.</DL>
<HR>

<A NAME="SKIP_PAGE"><!-- --></A><H3>
SKIP_PAGE</H3>
<PRE>
public static final int <B>SKIP_PAGE</B></PRE>
<DL>
<DD>Skip the rest of the page.
 Valid return value for doEndTag.</DL>
<HR>

<A NAME="EVAL_PAGE"><!-- --></A><H3>
EVAL_PAGE</H3>
<PRE>
public static final int <B>EVAL_PAGE</B></PRE>
<DL>
<DD>Continue evaluating the page.
 Valid return value for doEndTag().</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->


<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="setPageContext(javax.servlet.jsp.PageContext)"><!-- --></A><H3>
setPageContext</H3>
<PRE>
public void <B>setPageContext</B>(<A HREF="../../../../javax/servlet/jsp/PageContext.html">PageContext</A>&nbsp;pc)</PRE>
<DL>
<DD>Set the current page context.
 This method is invoked by the JSP page implementation object
 prior to doStartTag().
 <p>
 This value is *not* reset by doEndTag() and must be explicitly reset
 by a page implementation if it changes between calls to doStartTag().<DD><DL>
<DT><B>Parameters:</B><DD><CODE>pc</CODE> - The page context for this tag handler.</DL>
</DD>
</DL>
<HR>

<A NAME="setParent(javax.servlet.jsp.tagext.Tag)"><!-- --></A><H3>
setParent</H3>
<PRE>
public void <B>setParent</B>(<A HREF="../../../../javax/servlet/jsp/tagext/Tag.html">Tag</A>&nbsp;t)</PRE>
<DL>
<DD>Set the parent (closest enclosing tag handler) of this tag handler.
 Invoked by the JSP page implementation object prior to doStartTag().
 <p>
 This value is *not* reset by doEndTag() and must be explicitly reset
 by a page implementation.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>t</CODE> - The parent tag, or null.</DL>
</DD>
</DL>
<HR>

<A NAME="getParent()"><!-- --></A><H3>
getParent</H3>
<PRE>
public <A HREF="../../../../javax/servlet/jsp/tagext/Tag.html">Tag</A> <B>getParent</B>()</PRE>
<DL>
<DD>Get the parent (closest enclosing tag handler) for this tag handler.

 <p>
 The getParent() method can be used to navigate the nested tag
 handler structure at runtime for cooperation among custom actions;
 for example, the findAncestorWithClass() method in TagSupport
 provides a convenient way of doing this.

 <p>
 The current version of the specification only provides one formal
 way of indicating the observable type of a tag handler: its
 tag handler implementation class, described in the tag-class
 subelement of the tag element.  This is extended in an
 informal manner by allowing the tag library author to
 indicate in the description subelement an observable type.
 The type should be a subtype of the tag handler implementation
 class or void.
 This addititional constraint can be exploited by a
 specialized container that knows about that specific tag library,
 as in the case of the JSP standard tag library.</DL>
<HR>

<A NAME="doStartTag()"><!-- --></A><H3>
doStartTag</H3>
<PRE>
public int <B>doStartTag</B>()
               throws <A HREF="../../../../javax/servlet/jsp/JspException.html">JspException</A></PRE>
<DL>
<DD>Process the start tag for this instance.
 This method is invoked by the JSP page implementation object.

 <p>
 The doStartTag method assumes that the properties pageContext and
 parent have been set. It also assumes that any properties exposed as
 attributes have been set too.  When this method is invoked, the body
 has not yet been evaluated.

 <p>
 This method returns Tag.EVAL_BODY_INCLUDE or
 BodyTag.EVAL_BODY_BUFFERED to indicate
 that the body of the action should be evaluated or SKIP_BODY to
 indicate otherwise.

 <p>
 When a Tag returns EVAL_BODY_INCLUDE the result of evaluating
 the body (if any) is included into the current "out" JspWriter as it
 happens and then doEndTag() is invoked.

 <p>
 BodyTag.EVAL_BODY_BUFFERED is only valid  if the tag handler
 implements BodyTag.

 <p>
 The JSP container will resynchronize
 any variable values that are indicated as so in TagExtraInfo after the
 invocation of doStartTag().<DD><DL>
<DT><B>Throws:</B><DD><CODE>JspException.</CODE> - &nbsp;<DT><B>See Also: </B><DD><A HREF="../../../../javax/servlet/jsp/tagext/BodyTag.html"><CODE>BodyTag</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="doEndTag()"><!-- --></A><H3>
doEndTag</H3>
<PRE>
public int <B>doEndTag</B>()
             throws <A HREF="../../../../javax/servlet/jsp/JspException.html">JspException</A></PRE>
<DL>
<DD>Process the end tag for this instance.
 This method is invoked by the JSP page implementation object
 on all Tag handlers.

 <p>
 This method will be called after returning from doStartTag. The
 body of the action may or not have been evaluated, depending on
 the return value of doStartTag.

 <p>
 If this method returns EVAL_PAGE, the rest of the page continues
 to be evaluated.  If this method returns SKIP_PAGE, the rest of
 the page is not evaluated and the request is completed.  If this
 request was forwarded or included from another page (or Servlet),
 only the current page evaluation is completed.

 <p>
 The JSP container will resynchronize
 any variable values that are indicated as so in TagExtraInfo after the
 invocation of doEndTag().<DD><DL>
<DT><B>Throws:</B><DD><CODE>JspException.</CODE> - &nbsp;</DL>
</DD>
</DL>
<HR>

<A NAME="release()"><!-- --></A><H3>
release</H3>
<PRE>
public void <B>release</B>()</PRE>
<DL>
<DD>Called on a Tag handler to release state.
 The page compiler guarantees that JSP page implementation
 objects will invoke this method on all tag handlers,
 but there may be multiple invocations on doStartTag and doEndTag in between.</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>

<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../javax/servlet/jsp/tagext/IterationTag.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../javax/servlet/jsp/tagext/TryCatchFinally.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="Tag.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>

</BODY>
</HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?