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

📄 definitionsutil.html

📁 struts api,学习使用struts必备的文档
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<P>
<DD>Create Definition factory. If a factory class name is provided, a factory of this class is created. Otherwise, default factory is created.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>classname</CODE> - Class name of the factory to create.<DD><CODE>servletContext</CODE> - Servlet Context passed to newly created factory.<DD><CODE>properties</CODE> - Map of name/property used to initialize factory configuration object.<DT><B>Returns:</B><DD>newly created factory.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A></CODE> - If an error occur while initializing factory</DL>
</DD>
</DL>
<HR>

<A NAME="createDefinitionsFactory(javax.servlet.ServletContext, java.util.Map)"><!-- --></A><H3>
createDefinitionsFactory</H3>
<PRE>
public static <A HREF="../../../../org/apache/struts/tiles/DefinitionsFactory.html">DefinitionsFactory</A> <B>createDefinitionsFactory</B>(javax.servlet.ServletContext&nbsp;servletContext,                                                          java.util.Map&nbsp;properties)                                                   throws <A HREF="../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A></PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<DD>Create default Definition factory.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>servletContext</CODE> - Servlet Context passed to newly created factory.<DD><CODE>properties</CODE> - Map of name/property used to initialize factory configuration object.<DT><B>Returns:</B><DD>newly created factory of type ConfigurableDefinitionsFactory.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A></CODE> - If an error occur while initializing factory</DL>
</DD>
</DL>
<HR>

<A NAME="createDefinitionsFactory(javax.servlet.ServletContext, javax.servlet.ServletConfig)"><!-- --></A><H3>
createDefinitionsFactory</H3>
<PRE>
public static <A HREF="../../../../org/apache/struts/tiles/DefinitionsFactory.html">DefinitionsFactory</A> <B>createDefinitionsFactory</B>(javax.servlet.ServletContext&nbsp;servletContext,                                                          javax.servlet.ServletConfig&nbsp;servletConfig)                                                   throws <A HREF="../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A></PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<DD>Create Definition factory. Create configuration object from servlet web.xml file, then create ConfigurableDefinitionsFactory and initialized it with object. <p> Convenience method. Calls createDefinitionsFactory(ServletContext servletContext, DefinitionsFactoryConfig factoryConfig)<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>servletContext</CODE> - Servlet Context passed to newly created factory.<DD><CODE>servletConfig</CODE> - Servlet config containing parameters to be passed to factory configuration object.<DT><B>Returns:</B><DD>newly created factory of type ConfigurableDefinitionsFactory.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A></CODE> - If an error occur while initializing factory</DL>
</DD>
</DL>
<HR>

<A NAME="createDefinitionsFactory(javax.servlet.ServletContext, javax.servlet.ServletConfig, boolean)"><!-- --></A><H3>
createDefinitionsFactory</H3>
<PRE>
public static <A HREF="../../../../org/apache/struts/tiles/DefinitionsFactory.html">DefinitionsFactory</A> <B>createDefinitionsFactory</B>(javax.servlet.ServletContext&nbsp;servletContext,                                                          javax.servlet.ServletConfig&nbsp;servletConfig,                                                          boolean&nbsp;checkIfExist)                                                   throws <A HREF="../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A></PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<DD>Create Definition factory. Create configuration object from servlet web.xml file, then create ConfigurableDefinitionsFactory and initialized it with object. <p> If checkIfExist is true, start by checking if factory already exist. If yes, return it. If no, create a new one. <p> If checkIfExist is false, factory is always created. <p> Convenience method. Calls createDefinitionsFactory(ServletContext servletContext, DefinitionsFactoryConfig factoryConfig)<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>servletContext</CODE> - Servlet Context passed to newly created factory.<DD><CODE>servletConfig</CODE> - Servlet config containing parameters to be passed to factory configuration object.<DD><CODE>checkIfExist</CODE> - Check if factory already exist. If true and factory exist, return it. If true and factory doesn't exist, create it. If false, create it in all cases.<DT><B>Returns:</B><DD>newly created factory of type ConfigurableDefinitionsFactory.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A></CODE> - If an error occur while initializing factory</DL>
</DD>
</DL>
<HR>

<A NAME="getDefinitionsFactory(javax.servlet.ServletContext)"><!-- --></A><H3>
getDefinitionsFactory</H3>
<PRE>
public static <A HREF="../../../../org/apache/struts/tiles/DefinitionsFactory.html">DefinitionsFactory</A> <B>getDefinitionsFactory</B>(javax.servlet.ServletContext&nbsp;servletContext)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../org/apache/struts/tiles/TilesUtil.html#getDefinitionsFactory(javax.servlet.ServletRequest, javax.servlet.ServletContext)"><CODE>TilesUtil.getDefinitionsFactory(ServletRequest, ServletContext)</CODE></A></I>
<P>
<DD>Get definition factory from appropriate servlet context.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>Definitions factory or null if not found.<DT><B>Since: </B><DD>20020708</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="getActionDefinition(javax.servlet.ServletRequest)"><!-- --></A><H3>
getActionDefinition</H3>
<PRE>
public static <A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html">ComponentDefinition</A> <B>getActionDefinition</B>(javax.servlet.ServletRequest&nbsp;request)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<DD>Get Definition stored in jsp context by an action.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>ComponentDefinition or null if not found.</DL>
</DD>
</DL>
<HR>

<A NAME="setActionDefinition(javax.servlet.ServletRequest, org.apache.struts.tiles.ComponentDefinition)"><!-- --></A><H3>
setActionDefinition</H3>
<PRE>
public static void <B>setActionDefinition</B>(javax.servlet.ServletRequest&nbsp;request,                                       <A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html">ComponentDefinition</A>&nbsp;definition)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<DD>Store definition in jsp context. Mainly used by Struts to pass a definition defined in an Action to the forward.<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="removeActionDefinition(javax.servlet.ServletRequest, org.apache.struts.tiles.ComponentDefinition)"><!-- --></A><H3>
removeActionDefinition</H3>
<PRE>
public static void <B>removeActionDefinition</B>(javax.servlet.ServletRequest&nbsp;request,                                          <A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html">ComponentDefinition</A>&nbsp;definition)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<DD>Remove Definition stored in jsp context. Mainly used by Struts to pass a definition defined in an Action to the forward.<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="populateDefinitionsFactoryConfig(org.apache.struts.tiles.DefinitionsFactoryConfig, javax.servlet.ServletConfig)"><!-- --></A><H3>
populateDefinitionsFactoryConfig</H3>
<PRE>
public static void <B>populateDefinitionsFactoryConfig</B>(<A HREF="../../../../org/apache/struts/tiles/DefinitionsFactoryConfig.html">DefinitionsFactoryConfig</A>&nbsp;factoryConfig,                                                    javax.servlet.ServletConfig&nbsp;servletConfig)                                             throws java.lang.IllegalAccessException,                                                    java.lang.reflect.InvocationTargetException</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<DD>Populate Definition Factory Config from web.xml properties.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>factoryConfig</CODE> - Definition Factory Config to populate.<DD><CODE>servletConfig</CODE> - Current servlet config containing web.xml properties.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalAccessException</CODE> - if the caller does not have  access to the property accessor method<DD><CODE>java.lang.reflect.InvocationTargetException</CODE> - if the property accessor method  throws an exception<DT><B>Since: </B><DD>tiles 20020708</DD>
<DT><B>See Also: </B><DD><CODE>BeanUtils</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="readFactoryConfig(javax.servlet.ServletConfig)"><!-- --></A><H3>
readFactoryConfig</H3>
<PRE>
protected static <A HREF="../../../../org/apache/struts/tiles/DefinitionsFactoryConfig.html">DefinitionsFactoryConfig</A> <B>readFactoryConfig</B>(javax.servlet.ServletConfig&nbsp;servletConfig)                                                     throws <A HREF="../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A></PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<DD>Create FactoryConfig and initialize it from web.xml.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>servletConfig</CODE> - ServletConfig for the module with which  this plug in is associated<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/apache/struts/tiles/DefinitionsFactoryException.html">DefinitionsFactoryException</A></CODE> - if this <code>PlugIn</code> cannot  be successfully initialized</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/DefinitionsUtil.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/tiles/DefinitionsFactoryConfig.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/apache/struts/tiles/DefinitionsUtil.ServletPropertiesMap.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="DefinitionsUtil.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 + -