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

📄 inserttag.html

📁 struts api,学习使用struts必备的文档
💻 HTML
📖 第 1 页 / 共 5 页
字号:
</DD>
<DD><DL>
<DT><B>Throws:</B><DD><CODE>javax.servlet.jsp.JspException</CODE> - If controller can't be created.</DL>
</DD>
</DL>
<HR>

<A NAME="doStartTag()"><!-- --></A><H3>
doStartTag</H3>
<PRE>
public int <B>doStartTag</B>()               throws javax.servlet.jsp.JspException</PRE>
<DL>
<DD>Process the start tag by checking tag's attributes and creating appropriate handler. Possible handlers : <ul> <li> URL <li> definition <li> direct String </ul> Handlers also contain sub-component context.<DD><DL>
<DT><B>Overrides:</B><DD><CODE>doStartTag</CODE> in class <CODE>javax.servlet.jsp.tagext.TagSupport</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="doEndTag()"><!-- --></A><H3>
doEndTag</H3>
<PRE>
public int <B>doEndTag</B>()             throws javax.servlet.jsp.JspException</PRE>
<DL>
<DD>Process the end tag by including the template. Simply call the handler doEndTag<DD><DL>
<DT><B>Overrides:</B><DD><CODE>doEndTag</CODE> in class <CODE>javax.servlet.jsp.tagext.TagSupport</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="createTagHandler()"><!-- --></A><H3>
createTagHandler</H3>
<PRE>
public <A HREF="../../../../../org/apache/struts/taglib/tiles/InsertTag.TagHandler.html">InsertTag.TagHandler</A> <B>createTagHandler</B>()                                      throws javax.servlet.jsp.JspException</PRE>
<DL>
<DD>Process tag attribute and create corresponding tag handler.<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="processObjectValue(java.lang.Object)"><!-- --></A><H3>
processObjectValue</H3>
<PRE>
public <A HREF="../../../../../org/apache/struts/taglib/tiles/InsertTag.TagHandler.html">InsertTag.TagHandler</A> <B>processObjectValue</B>(java.lang.Object&nbsp;value)                                        throws javax.servlet.jsp.JspException</PRE>
<DL>
<DD>Process an object retrieved as a bean or attribute. Object can be a typed attribute, a String, or anything else. If typed attribute, use associated type. Otherwise, apply toString() on object, and use returned string as a name.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Throws:</B><DD><CODE>javax.servlet.jsp.JspException</CODE> - - Throws by underlying nested call to  processDefinitionName()</DL>
</DD>
</DL>
<HR>

<A NAME="processName(java.lang.String)"><!-- --></A><H3>
processName</H3>
<PRE>
public <A HREF="../../../../../org/apache/struts/taglib/tiles/InsertTag.TagHandler.html">InsertTag.TagHandler</A> <B>processName</B>(java.lang.String&nbsp;name)                                 throws javax.servlet.jsp.JspException</PRE>
<DL>
<DD>Process name. Search in following order : <ul> <li>Component context -  if found, process it as value.</li> <li>definitions factory</li> <li>URL</li> <li></li> </ul><DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>appropriate tag handler.<DT><B>Throws:</B><DD><CODE>javax.servlet.jsp.JspException</CODE> - - Throws by underlying nested call to  processDefinitionName()</DL>
</DD>
</DL>
<HR>

<A NAME="processUrl(java.lang.String)"><!-- --></A><H3>
processUrl</H3>
<PRE>
public <A HREF="../../../../../org/apache/struts/taglib/tiles/InsertTag.TagHandler.html">InsertTag.TagHandler</A> <B>processUrl</B>(java.lang.String&nbsp;url)                                throws javax.servlet.jsp.JspException</PRE>
<DL>
<DD>Process the url.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Throws:</B><DD><CODE>javax.servlet.jsp.JspException</CODE> - If failed to create controller</DL>
</DD>
</DL>
<HR>

<A NAME="processDefinitionName(java.lang.String)"><!-- --></A><H3>
processDefinitionName</H3>
<PRE>
protected <A HREF="../../../../../org/apache/struts/taglib/tiles/InsertTag.TagHandler.html">InsertTag.TagHandler</A> <B>processDefinitionName</B>(java.lang.String&nbsp;name)                                              throws javax.servlet.jsp.JspException</PRE>
<DL>
<DD>Process tag attribute "definition". First, search definition in the factory, then create handler from this definition.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the definition.<DT><B>Returns:</B><DD>Appropriate TagHandler.<DT><B>Throws:</B><DD><CODE>JspException-</CODE> - NoSuchDefinitionException No Definition  found for name.<DD><CODE>JspException-</CODE> - FactoryNotFoundException Can't find Definitions factory.<DD><CODE>JspException-</CODE> - DefinedComponentFactoryException General error in factory.<DD><CODE>javax.servlet.jsp.JspException</CODE> - InstantiationException Can't create requested controller</DL>
</DD>
</DL>
<HR>

<A NAME="processDefinition(org.apache.struts.tiles.ComponentDefinition)"><!-- --></A><H3>
processDefinition</H3>
<PRE>
protected <A HREF="../../../../../org/apache/struts/taglib/tiles/InsertTag.TagHandler.html">InsertTag.TagHandler</A> <B>processDefinition</B>(<A HREF="../../../../../org/apache/struts/tiles/ComponentDefinition.html">ComponentDefinition</A>&nbsp;definition)                                          throws javax.servlet.jsp.JspException</PRE>
<DL>
<DD>End of Process tag attribute "definition". Overload definition with tag attributes "template" and "role". Then, create appropriate tag handler.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>definition</CODE> - Definition to process.<DT><B>Returns:</B><DD>Appropriate TagHandler.<DT><B>Throws:</B><DD><CODE>javax.servlet.jsp.JspException</CODE> - InstantiationException Can't create requested controller</DL>
</DD>
</DL>
<HR>

<A NAME="processBean(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
processBean</H3>
<PRE>
protected <A HREF="../../../../../org/apache/struts/taglib/tiles/InsertTag.TagHandler.html">InsertTag.TagHandler</A> <B>processBean</B>(java.lang.String&nbsp;beanName,                                           java.lang.String&nbsp;beanProperty,                                           java.lang.String&nbsp;beanScope)                                    throws javax.servlet.jsp.JspException</PRE>
<DL>
<DD>Process a bean. Get bean value, eventually using property and scope. Found value is process by processObjectValue().<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>beanName</CODE> - Name of the bean<DD><CODE>beanProperty</CODE> - Property in the bean, or null.<DD><CODE>beanScope</CODE> - bean scope, or null.<DT><B>Returns:</B><DD>Appropriate TagHandler.<DT><B>Throws:</B><DD><CODE>javax.servlet.jsp.JspException</CODE> - - NoSuchDefinitionException No value associated to bean.<DD><CODE>javax.servlet.jsp.JspException</CODE> - an error occur while reading bean, or no definition found.<DD><CODE>javax.servlet.jsp.JspException</CODE> - - Throws by underlying nested call to processDefinitionName()</DL>
</DD>
</DL>
<HR>

<A NAME="processAttribute(java.lang.String)"><!-- --></A><H3>
processAttribute</H3>
<PRE>
public <A HREF="../../../../../org/apache/struts/taglib/tiles/InsertTag.TagHandler.html">InsertTag.TagHandler</A> <B>processAttribute</B>(java.lang.String&nbsp;name)                                      throws javax.servlet.jsp.JspException</PRE>
<DL>
<DD>Process tag attribute "attribute". Get value from component attribute. Found value is process by processObjectValue().<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the attribute.<DT><B>Returns:</B><DD>Appropriate TagHandler.<DT><B>Throws:</B><DD><CODE>javax.servlet.jsp.JspException</CODE> - - NoSuchDefinitionException No Definition  found for name.<DD><CODE>javax.servlet.jsp.JspException</CODE> - - Throws by underlying nested call to processDefinitionName()</DL>
</DD>
</DL>
<HR>

<A NAME="processAsDefinitionOrURL(java.lang.String)"><!-- --></A><H3>
processAsDefinitionOrURL</H3>
<PRE>
public <A HREF="../../../../../org/apache/struts/taglib/tiles/InsertTag.TagHandler.html">InsertTag.TagHandler</A> <B>processAsDefinitionOrURL</B>(java.lang.String&nbsp;name)                                              throws javax.servlet.jsp.JspException</PRE>
<DL>
<DD>Try to process name as a definition, or as an URL if not found.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name to process.<DT><B>Returns:</B><DD>appropriate TagHandler<DT><B>Throws:</B><DD><CODE>javax.servlet.jsp.JspException</CODE> - InstantiationException Can't create requested controller</DL>
</DD>
</DL>
<HR>

<A NAME="processTypedAttribute(org.apache.struts.tiles.AttributeDefinition)"><!-- --></A><H3>
processTypedAttribute</H3>
<PRE>
public <A HREF="../../../../../org/apache/struts/taglib/tiles/InsertTag.TagHandler.html">InsertTag.TagHandler</A> <B>processTypedAttribute</B>(<A HREF="../../../../../org/apache/struts/tiles/AttributeDefinition.html">AttributeDefinition</A>&nbsp;value)                                           throws javax.servlet.jsp.JspException</PRE>
<DL>
<DD>Process typed attribute according to its type.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - Typed attribute to process.<DT><B>Returns:</B><DD>appropriate TagHandler.<DT><B>Throws:</B><DD><CODE>javax.servlet.jsp.JspException</CODE> - - Throws by underlying nested call to processDefinitionName()</DL>
</DD>
</DL>
<HR>

<A NAME="doInclude(java.lang.String)"><!-- --></A><H3>
doInclude</H3>
<PRE>
protected void <B>doInclude</B>(java.lang.String&nbsp;page)                  throws javax.servlet.ServletException,                         java.io.IOException</PRE>
<DL>
<DD>Do an include of specified page. This method is used internally to do all includes from this class. It delegates the include call to the TilesUtil.doInclude().<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>page</CODE> - The page that will be included<DT><B>Throws:</B><DD><CODE>javax.servlet.ServletException</CODE> - - Thrown by call to pageContext.include()<DD><CODE>java.io.IOException</CODE> - - Thrown by call to pageContext.include()</DL>
</DD>
</DL>
<HR>

<A NAME="userHasRole(javax.servlet.http.HttpServletRequest, java.lang.String)"><!-- --></A><H3>
userHasRole</H3>
<PRE>
public static boolean <B>userHasRole</B>(javax.servlet.http.HttpServletRequest&nbsp;request,                                  java.lang.String&nbsp;role)</PRE>
<DL>
<DD>Parse the list of roles and return <code>true</code> or <code>false</code> based on whether the user has that role or not.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>role</CODE> - Comma-delimited list of roles.<DD><CODE>request</CODE> - The request.</DL>
</DD>
</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="class-use/InsertTag.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&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="../../../../../org/apache/struts/taglib/tiles/InitDefinitionsTag.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../../org/apache/struts/taglib/tiles/InsertTag.DirectStringHandler.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="InsertTag.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;<A HREF="#inner_class_summary">INNER</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&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;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>
Copyright 

⌨️ 快捷键说明

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