~ubuntu-branches/ubuntu/trusty/libstruts1.2-java/trusty-proposed

« back to all changes in this revision

Viewing changes to legacy/api-1.1/org/apache/struts/tiles/ComponentContext.html

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Vandyck
  • Date: 2004-11-19 15:35:25 UTC
  • Revision ID: james.westby@ubuntu.com-20041119153525-mdu08a76z4zo67xt
Tags: upstream-1.2.4
Import upstream version 1.2.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
 
2
<!--NewPage-->
 
3
<HTML>
 
4
<HEAD>
 
5
<!-- Generated by javadoc on Fri Aug 22 03:43:59 EDT 2003 -->
 
6
<TITLE>
 
7
ComponentContext (Apache Struts API Documentation)
 
8
</TITLE>
 
9
<META NAME="keywords" CONTENT="org.apache.struts.tiles.ComponentContext,ComponentContext class">
 
10
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
 
11
</HEAD>
 
12
<SCRIPT>
 
13
function asd()
 
14
{
 
15
parent.document.title="ComponentContext (Apache Struts API Documentation)";
 
16
}
 
17
</SCRIPT>
 
18
<BODY BGCOLOR="white" onload="asd();">
 
19
 
 
20
<!-- ========== START OF NAVBAR ========== -->
 
21
<A NAME="navbar_top"><!-- --></A>
 
22
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
 
23
<TR>
 
24
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 
25
<A NAME="navbar_top_firstrow"><!-- --></A>
 
26
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
 
27
  <TR ALIGN="center" VALIGN="top">
 
28
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
 
29
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 
30
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 
31
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ComponentContext.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
 
32
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
 
33
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
 
34
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 
35
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
 
36
  </TR>
 
37
</TABLE>
 
38
</TD>
 
39
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 
40
</EM>
 
41
</TD>
 
42
</TR>
 
43
 
 
44
<TR>
 
45
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
46
&nbsp;<A HREF="../../../../org/apache/struts/tiles/ActionController.html"><B>PREV CLASS</B></A>&nbsp;
 
47
&nbsp;<A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html"><B>NEXT CLASS</B></A></FONT></TD>
 
48
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
49
  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
 
50
&nbsp;<A HREF="ComponentContext.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;
 
51
&nbsp;
 
52
<SCRIPT>
 
53
  <!--
 
54
  if(window==top) {
 
55
    document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
 
56
  }
 
57
  //-->
 
58
</SCRIPT>
 
59
<NOSCRIPT>
 
60
<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
 
61
</NOSCRIPT>
 
62
</FONT></TD>
 
63
</TR>
 
64
<TR>
 
65
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
66
  SUMMARY:&nbsp;NESTED&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>
 
67
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
68
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>
 
69
</TR>
 
70
</TABLE>
 
71
<!-- =========== END OF NAVBAR =========== -->
 
72
 
 
73
<HR>
 
74
<!-- ======== START OF CLASS DATA ======== -->
 
75
<H2>
 
76
<FONT SIZE="-1">
 
77
org.apache.struts.tiles</FONT>
 
78
<BR>
 
79
Class ComponentContext</H2>
 
80
<PRE>
 
81
java.lang.Object
 
82
  |
 
83
  +--<B>org.apache.struts.tiles.ComponentContext</B>
 
84
</PRE>
 
85
<DL>
 
86
<DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable</DD>
 
87
</DL>
 
88
<HR>
 
89
<DL>
 
90
<DT>public class <B>ComponentContext</B><DT>extends java.lang.Object<DT>implements java.io.Serializable</DL>
 
91
 
 
92
<P>
 
93
Component context.
 
94
<P>
 
95
 
 
96
<P>
 
97
<DL>
 
98
<DT><B>See Also:</B><DD><A HREF="../../../../serialized-form.html" TARGET="org.apache.struts.tiles.ComponentContext">Serialized Form</A></DL>
 
99
<HR>
 
100
 
 
101
<P>
 
102
<!-- ======== NESTED CLASS SUMMARY ======== -->
 
103
 
 
104
 
 
105
<!-- =========== FIELD SUMMARY =========== -->
 
106
 
 
107
<A NAME="field_summary"><!-- --></A>
 
108
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
109
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
110
<TD COLSPAN=2><FONT SIZE="+2">
 
111
<B>Field Summary</B></FONT></TD>
 
112
</TR>
 
113
<TR BGCOLOR="white" CLASS="TableRowColor">
 
114
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
115
<CODE>private &nbsp;java.util.Map</CODE></FONT></TD>
 
116
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentContext.html#attributes">attributes</A></B></CODE>
 
117
 
 
118
<BR>
 
119
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Component attributes.</TD>
 
120
</TR>
 
121
<TR BGCOLOR="white" CLASS="TableRowColor">
 
122
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
123
<CODE>private static&nbsp;java.util.Iterator</CODE></FONT></TD>
 
124
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentContext.html#EMPTY_ITERATOR">EMPTY_ITERATOR</A></B></CODE>
 
125
 
 
126
<BR>
 
127
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;EmptyIterator over component attributes.</TD>
 
128
</TR>
 
129
</TABLE>
 
130
&nbsp;
 
131
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
 
132
 
 
133
<A NAME="constructor_summary"><!-- --></A>
 
134
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
135
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
136
<TD COLSPAN=2><FONT SIZE="+2">
 
137
<B>Constructor Summary</B></FONT></TD>
 
138
</TR>
 
139
<TR BGCOLOR="white" CLASS="TableRowColor">
 
140
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentContext.html#ComponentContext()">ComponentContext</A></B>()</CODE>
 
141
 
 
142
<BR>
 
143
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor.</TD>
 
144
</TR>
 
145
<TR BGCOLOR="white" CLASS="TableRowColor">
 
146
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentContext.html#ComponentContext(org.apache.struts.tiles.ComponentDefinition)">ComponentContext</A></B>(<A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html">ComponentDefinition</A>&nbsp;instance)</CODE>
 
147
 
 
148
<BR>
 
149
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../org/apache/struts/tiles/ComponentContext.html#ComponentContext(java.util.Map)"><CODE>ComponentContext(Map attributes)</CODE></A> instead.</I></TD>
 
150
</TR>
 
151
<TR BGCOLOR="white" CLASS="TableRowColor">
 
152
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentContext.html#ComponentContext(java.util.Map)">ComponentContext</A></B>(java.util.Map&nbsp;attributes)</CODE>
 
153
 
 
154
<BR>
 
155
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor.</TD>
 
156
</TR>
 
157
</TABLE>
 
158
&nbsp;
 
159
<!-- ========== METHOD SUMMARY =========== -->
 
160
 
 
161
<A NAME="method_summary"><!-- --></A>
 
162
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
163
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
164
<TD COLSPAN=2><FONT SIZE="+2">
 
165
<B>Method Summary</B></FONT></TD>
 
166
</TR>
 
167
<TR BGCOLOR="white" CLASS="TableRowColor">
 
168
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
169
<CODE>&nbsp;void</CODE></FONT></TD>
 
170
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentContext.html#addAll(java.util.Map)">addAll</A></B>(java.util.Map&nbsp;newAttributes)</CODE>
 
171
 
 
172
<BR>
 
173
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add all attributes to this context.</TD>
 
174
</TR>
 
175
<TR BGCOLOR="white" CLASS="TableRowColor">
 
176
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
177
<CODE>&nbsp;void</CODE></FONT></TD>
 
178
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentContext.html#addMissing(java.util.Map)">addMissing</A></B>(java.util.Map&nbsp;defaultAttributes)</CODE>
 
179
 
 
180
<BR>
 
181
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add all missing attributes to this context.</TD>
 
182
</TR>
 
183
<TR BGCOLOR="white" CLASS="TableRowColor">
 
184
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
185
<CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
 
186
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentContext.html#findAttribute(java.lang.String, javax.servlet.jsp.PageContext)">findAttribute</A></B>(java.lang.String&nbsp;beanName,
 
187
              javax.servlet.jsp.PageContext&nbsp;pageContext)</CODE>
 
188
 
 
189
<BR>
 
190
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Find object in one of the contexts.</TD>
 
191
</TR>
 
192
<TR BGCOLOR="white" CLASS="TableRowColor">
 
193
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
194
<CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
 
195
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentContext.html#getAttribute(java.lang.String)">getAttribute</A></B>(java.lang.String&nbsp;name)</CODE>
 
196
 
 
197
<BR>
 
198
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get an attribute from context.</TD>
 
199
</TR>
 
200
<TR BGCOLOR="white" CLASS="TableRowColor">
 
201
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
202
<CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
 
203
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentContext.html#getAttribute(java.lang.String, int, javax.servlet.jsp.PageContext)">getAttribute</A></B>(java.lang.String&nbsp;beanName,
 
204
             int&nbsp;scope,
 
205
             javax.servlet.jsp.PageContext&nbsp;pageContext)</CODE>
 
206
 
 
207
<BR>
 
208
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get object from requested context.</TD>
 
209
</TR>
 
210
<TR BGCOLOR="white" CLASS="TableRowColor">
 
211
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
212
<CODE>&nbsp;java.util.Iterator</CODE></FONT></TD>
 
213
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentContext.html#getAttributeNames()">getAttributeNames</A></B>()</CODE>
 
214
 
 
215
<BR>
 
216
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get names of all attributes.</TD>
 
217
</TR>
 
218
<TR BGCOLOR="white" CLASS="TableRowColor">
 
219
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
220
<CODE>static&nbsp;<A HREF="../../../../org/apache/struts/tiles/ComponentContext.html">ComponentContext</A></CODE></FONT></TD>
 
221
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentContext.html#getContext(javax.servlet.ServletRequest)">getContext</A></B>(javax.servlet.ServletRequest&nbsp;request)</CODE>
 
222
 
 
223
<BR>
 
224
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get component context from request.</TD>
 
225
</TR>
 
226
<TR BGCOLOR="white" CLASS="TableRowColor">
 
227
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
228
<CODE>&nbsp;void</CODE></FONT></TD>
 
229
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentContext.html#putAttribute(java.lang.String, java.lang.Object)">putAttribute</A></B>(java.lang.String&nbsp;name,
 
230
             java.lang.Object&nbsp;value)</CODE>
 
231
 
 
232
<BR>
 
233
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Put a new attribute to context.</TD>
 
234
</TR>
 
235
<TR BGCOLOR="white" CLASS="TableRowColor">
 
236
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
237
<CODE>static&nbsp;void</CODE></FONT></TD>
 
238
<TD><CODE><B><A HREF="../../../../org/apache/struts/tiles/ComponentContext.html#setContext(org.apache.struts.tiles.ComponentContext, javax.servlet.ServletRequest)">setContext</A></B>(<A HREF="../../../../org/apache/struts/tiles/ComponentContext.html">ComponentContext</A>&nbsp;context,
 
239
           javax.servlet.ServletRequest&nbsp;request)</CODE>
 
240
 
 
241
<BR>
 
242
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Store component context into request.</TD>
 
243
</TR>
 
244
</TABLE>
 
245
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
 
246
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
247
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
 
248
<TD><B>Methods inherited from class java.lang.Object</B></TD>
 
249
</TR>
 
250
<TR BGCOLOR="white" CLASS="TableRowColor">
 
251
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
 
252
</TR>
 
253
</TABLE>
 
254
&nbsp;
 
255
<P>
 
256
 
 
257
<!-- ============ FIELD DETAIL =========== -->
 
258
 
 
259
<A NAME="field_detail"><!-- --></A>
 
260
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
261
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
262
<TD COLSPAN=1><FONT SIZE="+2">
 
263
<B>Field Detail</B></FONT></TD>
 
264
</TR>
 
265
</TABLE>
 
266
 
 
267
<A NAME="attributes"><!-- --></A><H3>
 
268
attributes</H3>
 
269
<PRE>
 
270
private java.util.Map <B>attributes</B></PRE>
 
271
<DL>
 
272
<DD>Component attributes.
 
273
<P>
 
274
<DL>
 
275
</DL>
 
276
</DL>
 
277
<HR>
 
278
 
 
279
<A NAME="EMPTY_ITERATOR"><!-- --></A><H3>
 
280
EMPTY_ITERATOR</H3>
 
281
<PRE>
 
282
private static java.util.Iterator <B>EMPTY_ITERATOR</B></PRE>
 
283
<DL>
 
284
<DD>EmptyIterator over component attributes.
 
285
<P>
 
286
<DL>
 
287
</DL>
 
288
</DL>
 
289
 
 
290
<!-- ========= CONSTRUCTOR DETAIL ======== -->
 
291
 
 
292
<A NAME="constructor_detail"><!-- --></A>
 
293
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
294
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
295
<TD COLSPAN=1><FONT SIZE="+2">
 
296
<B>Constructor Detail</B></FONT></TD>
 
297
</TR>
 
298
</TABLE>
 
299
 
 
300
<A NAME="ComponentContext()"><!-- --></A><H3>
 
301
ComponentContext</H3>
 
302
<PRE>
 
303
public <B>ComponentContext</B>()</PRE>
 
304
<DL>
 
305
<DD>Constructor.
 
306
<P>
 
307
</DL>
 
308
<HR>
 
309
 
 
310
<A NAME="ComponentContext(org.apache.struts.tiles.ComponentDefinition)"><!-- --></A><H3>
 
311
ComponentContext</H3>
 
312
<PRE>
 
313
public <B>ComponentContext</B>(<A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html">ComponentDefinition</A>&nbsp;instance)</PRE>
 
314
<DL>
 
315
<DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../org/apache/struts/tiles/ComponentContext.html#ComponentContext(java.util.Map)"><CODE>ComponentContext(Map attributes)</CODE></A> instead.</I>
 
316
<P>
 
317
<DD>Constructor.
 
318
<P>
 
319
</DL>
 
320
<HR>
 
321
 
 
322
<A NAME="ComponentContext(java.util.Map)"><!-- --></A><H3>
 
323
ComponentContext</H3>
 
324
<PRE>
 
325
public <B>ComponentContext</B>(java.util.Map&nbsp;attributes)</PRE>
 
326
<DL>
 
327
<DD>Constructor.
 
328
 Create a context and set specified attributes.
 
329
<P>
 
330
<DT><B>Parameters:</B><DD><CODE>attributes</CODE> - Attributes to initialize context.</DL>
 
331
 
 
332
<!-- ============ METHOD DETAIL ========== -->
 
333
 
 
334
<A NAME="method_detail"><!-- --></A>
 
335
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
336
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
337
<TD COLSPAN=1><FONT SIZE="+2">
 
338
<B>Method Detail</B></FONT></TD>
 
339
</TR>
 
340
</TABLE>
 
341
 
 
342
<A NAME="addAll(java.util.Map)"><!-- --></A><H3>
 
343
addAll</H3>
 
344
<PRE>
 
345
public void <B>addAll</B>(java.util.Map&nbsp;newAttributes)</PRE>
 
346
<DL>
 
347
<DD>Add all attributes to this context.
 
348
 Copies all of the mappings from the specified attribute map to this context.
 
349
 New attribute mappings will replace any mappings that this context had for any of the keys
 
350
 currently in the specified attribute map.
 
351
<P>
 
352
<DD><DL>
 
353
</DL>
 
354
</DD>
 
355
<DD><DL>
 
356
<DT><B>Parameters:</B><DD><CODE>newAttributes</CODE> - Attributes to add.</DL>
 
357
</DD>
 
358
</DL>
 
359
<HR>
 
360
 
 
361
<A NAME="addMissing(java.util.Map)"><!-- --></A><H3>
 
362
addMissing</H3>
 
363
<PRE>
 
364
public void <B>addMissing</B>(java.util.Map&nbsp;defaultAttributes)</PRE>
 
365
<DL>
 
366
<DD>Add all missing attributes to this context.
 
367
 Copies all of the mappings from the specified attributes map to this context.
 
368
 New attribute mappings will be added only if they don't already exist in
 
369
 this context.
 
370
<P>
 
371
<DD><DL>
 
372
</DL>
 
373
</DD>
 
374
<DD><DL>
 
375
<DT><B>Parameters:</B><DD><CODE>defaultAttributes</CODE> - Attributes to add.</DL>
 
376
</DD>
 
377
</DL>
 
378
<HR>
 
379
 
 
380
<A NAME="getAttribute(java.lang.String)"><!-- --></A><H3>
 
381
getAttribute</H3>
 
382
<PRE>
 
383
public java.lang.Object <B>getAttribute</B>(java.lang.String&nbsp;name)</PRE>
 
384
<DL>
 
385
<DD>Get an attribute from context.
 
386
<P>
 
387
<DD><DL>
 
388
</DL>
 
389
</DD>
 
390
<DD><DL>
 
391
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the attribute.
 
392
<DT><B>Returns:</B><DD><{Object}></DL>
 
393
</DD>
 
394
</DL>
 
395
<HR>
 
396
 
 
397
<A NAME="getAttributeNames()"><!-- --></A><H3>
 
398
getAttributeNames</H3>
 
399
<PRE>
 
400
public java.util.Iterator <B>getAttributeNames</B>()</PRE>
 
401
<DL>
 
402
<DD>Get names of all attributes.
 
403
<P>
 
404
<DD><DL>
 
405
</DL>
 
406
</DD>
 
407
<DD><DL>
 
408
 
 
409
<DT><B>Returns:</B><DD><{Object}></DL>
 
410
</DD>
 
411
</DL>
 
412
<HR>
 
413
 
 
414
<A NAME="putAttribute(java.lang.String, java.lang.Object)"><!-- --></A><H3>
 
415
putAttribute</H3>
 
416
<PRE>
 
417
public void <B>putAttribute</B>(java.lang.String&nbsp;name,
 
418
                         java.lang.Object&nbsp;value)</PRE>
 
419
<DL>
 
420
<DD>Put a new attribute to context.
 
421
<P>
 
422
<DD><DL>
 
423
</DL>
 
424
</DD>
 
425
<DD><DL>
 
426
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the attribute.<DD><CODE>value</CODE> - Value of the attribute.</DL>
 
427
</DD>
 
428
</DL>
 
429
<HR>
 
430
 
 
431
<A NAME="findAttribute(java.lang.String, javax.servlet.jsp.PageContext)"><!-- --></A><H3>
 
432
findAttribute</H3>
 
433
<PRE>
 
434
public java.lang.Object <B>findAttribute</B>(java.lang.String&nbsp;beanName,
 
435
                                      javax.servlet.jsp.PageContext&nbsp;pageContext)</PRE>
 
436
<DL>
 
437
<DD>Find object in one of the contexts.
 
438
 Order : component then pageContext.findAttribute()
 
439
<P>
 
440
<DD><DL>
 
441
</DL>
 
442
</DD>
 
443
<DD><DL>
 
444
<DT><B>Parameters:</B><DD><CODE>beanName</CODE> - Name of the bean to find.<DD><CODE>pageContext</CODE> - Page context.
 
445
<DT><B>Returns:</B><DD>Requested bean or <code>null</code> if not found.</DL>
 
446
</DD>
 
447
</DL>
 
448
<HR>
 
449
 
 
450
<A NAME="getAttribute(java.lang.String, int, javax.servlet.jsp.PageContext)"><!-- --></A><H3>
 
451
getAttribute</H3>
 
452
<PRE>
 
453
public java.lang.Object <B>getAttribute</B>(java.lang.String&nbsp;beanName,
 
454
                                     int&nbsp;scope,
 
455
                                     javax.servlet.jsp.PageContext&nbsp;pageContext)</PRE>
 
456
<DL>
 
457
<DD>Get object from requested context.
 
458
 Context can be 'component'.
 
459
<P>
 
460
<DD><DL>
 
461
</DL>
 
462
</DD>
 
463
<DD><DL>
 
464
<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.
 
465
<DT><B>Returns:</B><DD>requested bean or <code>null</code> if not found.</DL>
 
466
</DD>
 
467
</DL>
 
468
<HR>
 
469
 
 
470
<A NAME="getContext(javax.servlet.ServletRequest)"><!-- --></A><H3>
 
471
getContext</H3>
 
472
<PRE>
 
473
public static <A HREF="../../../../org/apache/struts/tiles/ComponentContext.html">ComponentContext</A> <B>getContext</B>(javax.servlet.ServletRequest&nbsp;request)</PRE>
 
474
<DL>
 
475
<DD>Get component context from request.
 
476
<P>
 
477
<DD><DL>
 
478
</DL>
 
479
</DD>
 
480
<DD><DL>
 
481
<DT><B>Parameters:</B><DD><CODE>request</CODE> - ServletRequest.
 
482
<DT><B>Returns:</B><DD>ComponentContext</DL>
 
483
</DD>
 
484
</DL>
 
485
<HR>
 
486
 
 
487
<A NAME="setContext(org.apache.struts.tiles.ComponentContext, javax.servlet.ServletRequest)"><!-- --></A><H3>
 
488
setContext</H3>
 
489
<PRE>
 
490
public static void <B>setContext</B>(<A HREF="../../../../org/apache/struts/tiles/ComponentContext.html">ComponentContext</A>&nbsp;context,
 
491
                              javax.servlet.ServletRequest&nbsp;request)</PRE>
 
492
<DL>
 
493
<DD>Store component context into request.
 
494
<P>
 
495
<DD><DL>
 
496
</DL>
 
497
</DD>
 
498
<DD><DL>
 
499
<DT><B>Parameters:</B><DD><CODE>context</CODE> - ComponentContext to store.<DD><CODE>request</CODE> - Request to store ComponentContext.</DL>
 
500
</DD>
 
501
</DL>
 
502
<!-- ========= END OF CLASS DATA ========= -->
 
503
<HR>
 
504
 
 
505
<!-- ========== START OF NAVBAR ========== -->
 
506
<A NAME="navbar_bottom"><!-- --></A>
 
507
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
 
508
<TR>
 
509
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 
510
<A NAME="navbar_bottom_firstrow"><!-- --></A>
 
511
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
 
512
  <TR ALIGN="center" VALIGN="top">
 
513
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
 
514
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 
515
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 
516
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ComponentContext.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
 
517
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
 
518
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
 
519
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 
520
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
 
521
  </TR>
 
522
</TABLE>
 
523
</TD>
 
524
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 
525
</EM>
 
526
</TD>
 
527
</TR>
 
528
 
 
529
<TR>
 
530
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
531
&nbsp;<A HREF="../../../../org/apache/struts/tiles/ActionController.html"><B>PREV CLASS</B></A>&nbsp;
 
532
&nbsp;<A HREF="../../../../org/apache/struts/tiles/ComponentDefinition.html"><B>NEXT CLASS</B></A></FONT></TD>
 
533
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
534
  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
 
535
&nbsp;<A HREF="ComponentContext.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;
 
536
&nbsp;
 
537
<SCRIPT>
 
538
  <!--
 
539
  if(window==top) {
 
540
    document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
 
541
  }
 
542
  //-->
 
543
</SCRIPT>
 
544
<NOSCRIPT>
 
545
<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
 
546
</NOSCRIPT>
 
547
</FONT></TD>
 
548
</TR>
 
549
<TR>
 
550
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
551
  SUMMARY:&nbsp;NESTED&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>
 
552
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
553
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>
 
554
</TR>
 
555
</TABLE>
 
556
<!-- =========== END OF NAVBAR =========== -->
 
557
 
 
558
<HR>
 
559
Copyright � 2000-2003 - Apache Software Foundation
 
560
</BODY>
 
561
</HTML>