⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 simpletagsupport.html

📁 j2ee帮助文档软件设计/软件工程 文件格式
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</TABLE><A NAME="doTag()"><!-- --></A><H3>doTag</H3><PRE>public void <B>doTag</B>()           throws <A HREF="../../../../javax/servlet/jsp/JspException.html" title="class in javax.servlet.jsp">JspException</A>,                  <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Default processing of the tag does nothing.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../javax/servlet/jsp/tagext/SimpleTag.html#doTag()">doTag</A></CODE> in interface <CODE><A HREF="../../../../javax/servlet/jsp/tagext/SimpleTag.html" title="interface in javax.servlet.jsp.tagext">SimpleTag</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../javax/servlet/jsp/JspException.html" title="class in javax.servlet.jsp">JspException</A></CODE> - Subclasses can throw JspException to indicate     an error occurred while processing this tag.<DD><CODE><A HREF="../../../../javax/servlet/jsp/SkipPageException.html" title="class in javax.servlet.jsp">SkipPageException</A></CODE> - If the page that     (either directly or indirectly) invoked this tag is to     cease evaluation.  A Simple Tag Handler generated from a      tag file must throw this exception if an invoked Classic      Tag Handler returned SKIP_PAGE or if an invoked Simple     Tag Handler threw SkipPageException or if an invoked Jsp Fragment     threw a SkipPageException.<DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - Subclasses can throw IOException if there was     an error writing to the output stream<DT><B>See Also:</B><DD><A HREF="../../../../javax/servlet/jsp/tagext/SimpleTag.html#doTag()"><CODE>SimpleTag.doTag()</CODE></A></DL></DD></DL><HR><A NAME="setParent(javax.servlet.jsp.tagext.JspTag)"><!-- --></A><H3>setParent</H3><PRE>public void <B>setParent</B>(<A HREF="../../../../javax/servlet/jsp/tagext/JspTag.html" title="interface in javax.servlet.jsp.tagext">JspTag</A>&nbsp;parent)</PRE><DL><DD>Sets the parent of this tag, for collaboration purposes. <p> The container invokes this method only if this tag invocation is nested within another tag invocation.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../javax/servlet/jsp/tagext/SimpleTag.html#setParent(javax.servlet.jsp.tagext.JspTag)">setParent</A></CODE> in interface <CODE><A HREF="../../../../javax/servlet/jsp/tagext/SimpleTag.html" title="interface in javax.servlet.jsp.tagext">SimpleTag</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>parent</CODE> - the tag that encloses this tag</DL></DD></DL><HR><A NAME="getParent()"><!-- --></A><H3>getParent</H3><PRE>public <A HREF="../../../../javax/servlet/jsp/tagext/JspTag.html" title="interface in javax.servlet.jsp.tagext">JspTag</A> <B>getParent</B>()</PRE><DL><DD>Returns the parent of this tag, for collaboration purposes.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../javax/servlet/jsp/tagext/SimpleTag.html#getParent()">getParent</A></CODE> in interface <CODE><A HREF="../../../../javax/servlet/jsp/tagext/SimpleTag.html" title="interface in javax.servlet.jsp.tagext">SimpleTag</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the parent of this tag</DL></DD></DL><HR><A NAME="setJspContext(javax.servlet.jsp.JspContext)"><!-- --></A><H3>setJspContext</H3><PRE>public void <B>setJspContext</B>(<A HREF="../../../../javax/servlet/jsp/JspContext.html" title="class in javax.servlet.jsp">JspContext</A>&nbsp;pc)</PRE><DL><DD>Stores the provided JSP context in the private jspContext field. Subclasses can access the <code>JspContext</code> via  <code>getJspContext()</code>.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../javax/servlet/jsp/tagext/SimpleTag.html#setJspContext(javax.servlet.jsp.JspContext)">setJspContext</A></CODE> in interface <CODE><A HREF="../../../../javax/servlet/jsp/tagext/SimpleTag.html" title="interface in javax.servlet.jsp.tagext">SimpleTag</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>pc</CODE> - the page context for this invocation<DT><B>See Also:</B><DD><A HREF="../../../../javax/servlet/jsp/tagext/SimpleTag.html#setJspContext(javax.servlet.jsp.JspContext)"><CODE>SimpleTag.setJspContext(javax.servlet.jsp.JspContext)</CODE></A></DL></DD></DL><HR><A NAME="getJspContext()"><!-- --></A><H3>getJspContext</H3><PRE>protected <A HREF="../../../../javax/servlet/jsp/JspContext.html" title="class in javax.servlet.jsp">JspContext</A> <B>getJspContext</B>()</PRE><DL><DD>Returns the page context passed in by the container via  setJspContext.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the page context for this invocation</DL></DD></DL><HR><A NAME="setJspBody(javax.servlet.jsp.tagext.JspFragment)"><!-- --></A><H3>setJspBody</H3><PRE>public void <B>setJspBody</B>(<A HREF="../../../../javax/servlet/jsp/tagext/JspFragment.html" title="class in javax.servlet.jsp.tagext">JspFragment</A>&nbsp;jspBody)</PRE><DL><DD>Stores the provided JspFragment.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../javax/servlet/jsp/tagext/SimpleTag.html#setJspBody(javax.servlet.jsp.tagext.JspFragment)">setJspBody</A></CODE> in interface <CODE><A HREF="../../../../javax/servlet/jsp/tagext/SimpleTag.html" title="interface in javax.servlet.jsp.tagext">SimpleTag</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>jspBody</CODE> - The fragment encapsulating the body of this tag.     If the action element is empty in the page, this method is      not called at all.<DT><B>See Also:</B><DD><A HREF="../../../../javax/servlet/jsp/tagext/SimpleTag.html#setJspBody(javax.servlet.jsp.tagext.JspFragment)"><CODE>SimpleTag.setJspBody(javax.servlet.jsp.tagext.JspFragment)</CODE></A></DL></DD></DL><HR><A NAME="getJspBody()"><!-- --></A><H3>getJspBody</H3><PRE>protected <A HREF="../../../../javax/servlet/jsp/tagext/JspFragment.html" title="class in javax.servlet.jsp.tagext">JspFragment</A> <B>getJspBody</B>()</PRE><DL><DD>Returns the body passed in by the container via setJspBody.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the fragment encapsulating the body of this tag, or    null if the action element is empty in the page.</DL></DD></DL><HR><A NAME="findAncestorWithClass(javax.servlet.jsp.tagext.JspTag, java.lang.Class)"><!-- --></A><H3>findAncestorWithClass</H3><PRE>public static final <A HREF="../../../../javax/servlet/jsp/tagext/JspTag.html" title="interface in javax.servlet.jsp.tagext">JspTag</A> <B>findAncestorWithClass</B>(<A HREF="../../../../javax/servlet/jsp/tagext/JspTag.html" title="interface in javax.servlet.jsp.tagext">JspTag</A>&nbsp;from,                                                 <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A>&lt;?&gt;&nbsp;klass)</PRE><DL><DD>Find the instance of a given class type that is closest to a given instance. This method uses the getParent method from the Tag and/or SimpleTag interfaces.  This method is used for coordination among  cooperating tags. <p> For every instance of TagAdapter encountered while traversing the ancestors, the tag handler returned by <tt>TagAdapter.getAdaptee()</tt> - instead of the TagAdpater itself - is compared to <tt>klass</tt>. If the tag handler matches, it - and not its TagAdapter - is returned. <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. <p> When a tag library author provides information on the observable type of a tag handler, client programmatic code should adhere to that constraint.  Specifically, the Class passed to findAncestorWithClass should be a subtype of the observable type.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>from</CODE> - The instance from where to start looking.<DD><CODE>klass</CODE> - The subclass of JspTag or interface to be matched<DT><B>Returns:</B><DD>the nearest ancestor that implements the interface or is an instance of the class specified</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <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/SimpleTag.html" title="interface in javax.servlet.jsp.tagext"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../javax/servlet/jsp/tagext/Tag.html" title="interface in javax.servlet.jsp.tagext"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../index.html?javax/servlet/jsp/tagext/SimpleTagSupport.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="SimpleTagSupport.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><font size="-1"><a href="http://java.sun.com/webapps/bugreport">Submit a bug or feature</a> <p>Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to <a href="../legal/license.html" target="_top">license terms.</a></font></BODY></HTML>

⌨️ 快捷键说明

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