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

📄 componentcontext.html

📁 struts api,学习使用struts必备的文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<A NAME="attributes"><!-- --></A><H3>
attributes</H3>
<PRE>
private java.util.Map <B>attributes</B></PRE>
<DL>
<DD>Component attributes.</DL>

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

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

<A NAME="ComponentContext()"><!-- --></A><H3>
ComponentContext</H3>
<PRE>
public <B>ComponentContext</B>()</PRE>
<DL>
<DD>Constructor.</DL>
<HR>

<A NAME="ComponentContext(java.util.Map)"><!-- --></A><H3>
ComponentContext</H3>
<PRE>
public <B>ComponentContext</B>(java.util.Map&nbsp;attributes)</PRE>
<DL>
<DD>Constructor. Create a context and set specified attributes.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>attributes</CODE> - Attributes to initialize context.</DL>
</DD>
</DL>

<!-- ============ 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="addAll(java.util.Map)"><!-- --></A><H3>
addAll</H3>
<PRE>
public void <B>addAll</B>(java.util.Map&nbsp;newAttributes)</PRE>
<DL>
<DD>Add all attributes to this context. Copies all of the mappings from the specified attribute map to this context. New attribute mappings will replace any mappings that this context had for any of the keys currently in the specified attribute map.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>newAttributes</CODE> - Attributes to add.</DL>
</DD>
</DL>
<HR>

<A NAME="addMissing(java.util.Map)"><!-- --></A><H3>
addMissing</H3>
<PRE>
public void <B>addMissing</B>(java.util.Map&nbsp;defaultAttributes)</PRE>
<DL>
<DD>Add all missing attributes to this context. Copies all of the mappings from the specified attributes map to this context. New attribute mappings will be added only if they don't already exist in this context.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>defaultAttributes</CODE> - Attributes to add.</DL>
</DD>
</DL>
<HR>

<A NAME="getAttribute(java.lang.String)"><!-- --></A><H3>
getAttribute</H3>
<PRE>
public java.lang.Object <B>getAttribute</B>(java.lang.String&nbsp;name)</PRE>
<DL>
<DD>Get an attribute from context.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the attribute.<DT><B>Returns:</B><DD><{Object}></DL>
</DD>
</DL>
<HR>

<A NAME="getAttributeNames()"><!-- --></A><H3>
getAttributeNames</H3>
<PRE>
public java.util.Iterator <B>getAttributeNames</B>()</PRE>
<DL>
<DD>Get names of all attributes.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD><{Object}></DL>
</DD>
</DL>
<HR>

<A NAME="putAttribute(java.lang.String, java.lang.Object)"><!-- --></A><H3>
putAttribute</H3>
<PRE>
public void <B>putAttribute</B>(java.lang.String&nbsp;name,                         java.lang.Object&nbsp;value)</PRE>
<DL>
<DD>Put a new attribute to context.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the attribute.<DD><CODE>value</CODE> - Value of the attribute.</DL>
</DD>
</DL>
<HR>

<A NAME="findAttribute(java.lang.String, javax.servlet.jsp.PageContext)"><!-- --></A><H3>
findAttribute</H3>
<PRE>
public java.lang.Object <B>findAttribute</B>(java.lang.String&nbsp;beanName,                                      javax.servlet.jsp.PageContext&nbsp;pageContext)</PRE>
<DL>
<DD>Find object in one of the contexts. Order : component then pageContext.findAttribute()<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>beanName</CODE> - Name of the bean to find.<DD><CODE>pageContext</CODE> - Page context.<DT><B>Returns:</B><DD>Requested bean or <code>null</code> if not found.</DL>
</DD>
</DL>
<HR>

<A NAME="getAttribute(java.lang.String, int, javax.servlet.jsp.PageContext)"><!-- --></A><H3>
getAttribute</H3>
<PRE>
public java.lang.Object <B>getAttribute</B>(java.lang.String&nbsp;beanName,                                     int&nbsp;scope,                                     javax.servlet.jsp.PageContext&nbsp;pageContext)</PRE>
<DL>
<DD>Get object from requested context. Context can be 'component'.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>beanName</CODE> - Name of the bean to find.<DD><CODE>scope</CODE> - Search scope (see <CODE>PageContext</CODE>).<DD><CODE>pageContext</CODE> - Page context.<DT><B>Returns:</B><DD>requested bean or <code>null</code> if not found.</DL>
</DD>
</DL>
<HR>

<A NAME="getContext(javax.servlet.ServletRequest)"><!-- --></A><H3>
getContext</H3>
<PRE>
public static <A HREF="../../../../org/apache/struts/tiles/ComponentContext.html">ComponentContext</A> <B>getContext</B>(javax.servlet.ServletRequest&nbsp;request)</PRE>
<DL>
<DD>Get component context from request.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>request</CODE> - ServletRequest.<DT><B>Returns:</B><DD>ComponentContext or null if context is not found or an jspException is present in the request.</DL>
</DD>
</DL>
<HR>

<A NAME="setContext(org.apache.struts.tiles.ComponentContext, javax.servlet.ServletRequest)"><!-- --></A><H3>
setContext</H3>
<PRE>
public static void <B>setContext</B>(<A HREF="../../../../org/apache/struts/tiles/ComponentContext.html">ComponentContext</A>&nbsp;context,                              javax.servlet.ServletRequest&nbsp;request)</PRE>
<DL>
<DD>Store component context into request.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>context</CODE> - ComponentContext to store.<DD><CODE>request</CODE> - Request to store ComponentContext.</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/ComponentContext.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/ActionController.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.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="ComponentContext.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;<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 + -