1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
5
<!-- Generated by javadoc on Fri Aug 22 03:44:10 EDT 2003 -->
7
DynaActionForm (Apache Struts API Documentation)
9
<META NAME="keywords" CONTENT="org.apache.struts.action.DynaActionForm,DynaActionForm class">
10
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
15
parent.document.title="DynaActionForm (Apache Struts API Documentation)";
18
<BODY BGCOLOR="white" onload="asd();">
20
<!-- ========== START OF NAVBAR ========== -->
21
<A NAME="navbar_top"><!-- --></A>
22
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
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> </TD>
29
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
30
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
31
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DynaActionForm.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
32
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
33
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
34
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
35
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
39
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
45
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
46
<A HREF="../../../../org/apache/struts/action/ActionServletWrapper.html"><B>PREV CLASS</B></A>
47
<A HREF="../../../../org/apache/struts/action/DynaActionFormClass.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>
50
<A HREF="DynaActionForm.html" TARGET="_top"><B>NO FRAMES</B></A>
55
document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
60
<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
65
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
66
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
67
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
68
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
71
<!-- =========== END OF NAVBAR =========== -->
74
<!-- ======== START OF CLASS DATA ======== -->
77
org.apache.struts.action</FONT>
79
Class DynaActionForm</H2>
83
+--<A HREF="../../../../org/apache/struts/action/ActionForm.html">org.apache.struts.action.ActionForm</A>
85
+--<B>org.apache.struts.action.DynaActionForm</B>
88
<DT><B>All Implemented Interfaces:</B> <DD>org.apache.commons.beanutils.DynaBean, java.io.Serializable</DD>
91
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../org/apache/struts/validator/DynaValidatorForm.html">DynaValidatorForm</A></DD>
95
<DT>public class <B>DynaActionForm</B><DT>extends <A HREF="../../../../org/apache/struts/action/ActionForm.html">ActionForm</A><DT>implements org.apache.commons.beanutils.DynaBean</DL>
98
<p>Specialized subclass of <code>ActionForm</code> that allows the creation
99
of form beans with dynamic sets of properties, without requiring the
100
developer to create a Java class for each type of form bean.</p>
102
<p><strong>USAGE NOTE</strong> - Since Struts 1.1, the
103
<code>reset()</code> method no longer initializes property values to those
104
specified in <code><form-property></code> elements in the Struts
105
module configuration file. If you wish to utilize that behavior, the
106
simplest solution is to subclass <code>DynaActionForm</code> and call
107
the <code>initialize()</code> method inside it.</p>
112
<DT><B>Since:</B></DT>
114
<DT><B>Version:</B></DT>
115
<DD>$Revision: 1.1 $ $Date: 2003/08/22 08:14:18 $</DD>
116
<DT><B>Author:</B></DT>
117
<DD>Craig R. McClanahan</DD>
118
<DT><B>See Also:</B><DD><A HREF="../../../../serialized-form.html" TARGET="org.apache.struts.action.DynaActionForm">Serialized Form</A></DL>
122
<!-- ======== NESTED CLASS SUMMARY ======== -->
125
<!-- =========== FIELD SUMMARY =========== -->
127
<A NAME="field_summary"><!-- --></A>
128
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
129
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
130
<TD COLSPAN=2><FONT SIZE="+2">
131
<B>Field Summary</B></FONT></TD>
133
<TR BGCOLOR="white" CLASS="TableRowColor">
134
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
135
<CODE>protected <A HREF="../../../../org/apache/struts/action/DynaActionFormClass.html">DynaActionFormClass</A></CODE></FONT></TD>
136
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionForm.html#dynaClass">dynaClass</A></B></CODE>
139
The DynaActionFormClass with which we are associated.</TD>
141
<TR BGCOLOR="white" CLASS="TableRowColor">
142
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
143
<CODE>protected java.util.HashMap</CODE></FONT></TD>
144
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionForm.html#dynaValues">dynaValues</A></B></CODE>
147
The set of property values for this DynaActionForm, keyed by
151
<A NAME="fields_inherited_from_class_org.apache.struts.action.ActionForm"><!-- --></A>
152
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
153
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
154
<TD><B>Fields inherited from class org.apache.struts.action.<A HREF="../../../../org/apache/struts/action/ActionForm.html">ActionForm</A></B></TD>
156
<TR BGCOLOR="white" CLASS="TableRowColor">
157
<TD><CODE><A HREF="../../../../org/apache/struts/action/ActionForm.html#multipartRequestHandler">multipartRequestHandler</A>, <A HREF="../../../../org/apache/struts/action/ActionForm.html#servlet">servlet</A></CODE></TD>
161
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
163
<A NAME="constructor_summary"><!-- --></A>
164
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
165
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
166
<TD COLSPAN=2><FONT SIZE="+2">
167
<B>Constructor Summary</B></FONT></TD>
169
<TR BGCOLOR="white" CLASS="TableRowColor">
170
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionForm.html#DynaActionForm()">DynaActionForm</A></B>()</CODE>
173
</TD>
177
<!-- ========== METHOD SUMMARY =========== -->
179
<A NAME="method_summary"><!-- --></A>
180
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
181
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
182
<TD COLSPAN=2><FONT SIZE="+2">
183
<B>Method Summary</B></FONT></TD>
185
<TR BGCOLOR="white" CLASS="TableRowColor">
186
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
187
<CODE> boolean</CODE></FONT></TD>
188
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionForm.html#contains(java.lang.String, java.lang.String)">contains</A></B>(java.lang.String name,
189
java.lang.String key)</CODE>
192
Indicates if the specified mapped property contain a value for the specified
195
<TR BGCOLOR="white" CLASS="TableRowColor">
196
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
197
<CODE> java.lang.Object</CODE></FONT></TD>
198
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionForm.html#get(java.lang.String)">get</A></B>(java.lang.String name)</CODE>
201
Return the value of a simple property with the specified name.</TD>
203
<TR BGCOLOR="white" CLASS="TableRowColor">
204
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
205
<CODE> java.lang.Object</CODE></FONT></TD>
206
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionForm.html#get(java.lang.String, int)">get</A></B>(java.lang.String name,
207
int index)</CODE>
210
Return the value of an indexed property with the specified name.</TD>
212
<TR BGCOLOR="white" CLASS="TableRowColor">
213
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
214
<CODE> java.lang.Object</CODE></FONT></TD>
215
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionForm.html#get(java.lang.String, java.lang.String)">get</A></B>(java.lang.String name,
216
java.lang.String key)</CODE>
219
Return the value of a mapped property with the specified name,
220
or <code>null</code> if there is no value for the specified key.</TD>
222
<TR BGCOLOR="white" CLASS="TableRowColor">
223
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
224
<CODE> org.apache.commons.beanutils.DynaClass</CODE></FONT></TD>
225
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionForm.html#getDynaClass()">getDynaClass</A></B>()</CODE>
228
Return the <code>DynaClass</code> instance that describes the set of
229
properties available for this DynaBean.</TD>
231
<TR BGCOLOR="white" CLASS="TableRowColor">
232
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
233
<CODE>protected org.apache.commons.beanutils.DynaProperty</CODE></FONT></TD>
234
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionForm.html#getDynaProperty(java.lang.String)">getDynaProperty</A></B>(java.lang.String name)</CODE>
237
Return the property descriptor for the specified property name.</TD>
239
<TR BGCOLOR="white" CLASS="TableRowColor">
240
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
241
<CODE> java.util.Map</CODE></FONT></TD>
242
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionForm.html#getMap()">getMap</A></B>()</CODE>
245
Returns the <code>Map</code> containing the property values.</TD>
247
<TR BGCOLOR="white" CLASS="TableRowColor">
248
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
249
<CODE> void</CODE></FONT></TD>
250
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionForm.html#initialize(org.apache.struts.action.ActionMapping)">initialize</A></B>(<A HREF="../../../../org/apache/struts/action/ActionMapping.html">ActionMapping</A> mapping)</CODE>
253
Initialize all bean properties to their initial values, as specified
254
in the <A HREF="../../../../org/apache/struts/config/FormPropertyConfig.html"><CODE>FormPropertyConfig</CODE></A> elements associated with the
255
definition of this <code>DynaActionForm</code>.</TD>
257
<TR BGCOLOR="white" CLASS="TableRowColor">
258
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
259
<CODE>protected boolean</CODE></FONT></TD>
260
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionForm.html#isDynaAssignable(java.lang.Class, java.lang.Class)">isDynaAssignable</A></B>(java.lang.Class dest,
261
java.lang.Class source)</CODE>
264
Indicates if an object of the source class is assignable to the destination class.</TD>
266
<TR BGCOLOR="white" CLASS="TableRowColor">
267
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
268
<CODE> void</CODE></FONT></TD>
269
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionForm.html#remove(java.lang.String, java.lang.String)">remove</A></B>(java.lang.String name,
270
java.lang.String key)</CODE>
273
Remove any existing value for the specified key on the
274
specified mapped property.</TD>
276
<TR BGCOLOR="white" CLASS="TableRowColor">
277
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
278
<CODE> void</CODE></FONT></TD>
279
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionForm.html#reset(org.apache.struts.action.ActionMapping, javax.servlet.http.HttpServletRequest)">reset</A></B>(<A HREF="../../../../org/apache/struts/action/ActionMapping.html">ActionMapping</A> mapping,
280
javax.servlet.http.HttpServletRequest request)</CODE>
283
Reset all bean properties to their default state.</TD>
285
<TR BGCOLOR="white" CLASS="TableRowColor">
286
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
287
<CODE> void</CODE></FONT></TD>
288
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionForm.html#reset(org.apache.struts.action.ActionMapping, javax.servlet.ServletRequest)">reset</A></B>(<A HREF="../../../../org/apache/struts/action/ActionMapping.html">ActionMapping</A> mapping,
289
javax.servlet.ServletRequest request)</CODE>
292
Reset all bean properties to their default state.</TD>
294
<TR BGCOLOR="white" CLASS="TableRowColor">
295
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
296
<CODE> void</CODE></FONT></TD>
297
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionForm.html#set(java.lang.String, int, java.lang.Object)">set</A></B>(java.lang.String name,
299
java.lang.Object value)</CODE>
302
Set the value of an indexed property with the specified name.</TD>
304
<TR BGCOLOR="white" CLASS="TableRowColor">
305
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
306
<CODE> void</CODE></FONT></TD>
307
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionForm.html#set(java.lang.String, java.lang.Object)">set</A></B>(java.lang.String name,
308
java.lang.Object value)</CODE>
311
Set the value of a simple property with the specified name.</TD>
313
<TR BGCOLOR="white" CLASS="TableRowColor">
314
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
315
<CODE> void</CODE></FONT></TD>
316
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionForm.html#set(java.lang.String, java.lang.String, java.lang.Object)">set</A></B>(java.lang.String name,
317
java.lang.String key,
318
java.lang.Object value)</CODE>
321
Set the value of a mapped property with the specified name.</TD>
323
<TR BGCOLOR="white" CLASS="TableRowColor">
324
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
325
<CODE>(package private) void</CODE></FONT></TD>
326
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionForm.html#setDynaActionFormClass(org.apache.struts.action.DynaActionFormClass)">setDynaActionFormClass</A></B>(<A HREF="../../../../org/apache/struts/action/DynaActionFormClass.html">DynaActionFormClass</A> dynaClass)</CODE>
329
Set the DynaActionFormClass instance that we are associated with.</TD>
331
<TR BGCOLOR="white" CLASS="TableRowColor">
332
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
333
<CODE> java.lang.String</CODE></FONT></TD>
334
<TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionForm.html#toString()">toString</A></B>()</CODE>
337
Render a String representation of this object.</TD>
340
<A NAME="methods_inherited_from_class_org.apache.struts.action.ActionForm"><!-- --></A>
341
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
342
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
343
<TD><B>Methods inherited from class org.apache.struts.action.<A HREF="../../../../org/apache/struts/action/ActionForm.html">ActionForm</A></B></TD>
345
<TR BGCOLOR="white" CLASS="TableRowColor">
346
<TD><CODE><A HREF="../../../../org/apache/struts/action/ActionForm.html#getMultipartRequestHandler()">getMultipartRequestHandler</A>, <A HREF="../../../../org/apache/struts/action/ActionForm.html#getServlet()">getServlet</A>, <A HREF="../../../../org/apache/struts/action/ActionForm.html#getServletWrapper()">getServletWrapper</A>, <A HREF="../../../../org/apache/struts/action/ActionForm.html#setMultipartRequestHandler(org.apache.struts.upload.MultipartRequestHandler)">setMultipartRequestHandler</A>, <A HREF="../../../../org/apache/struts/action/ActionForm.html#setServlet(org.apache.struts.action.ActionServlet)">setServlet</A>, <A HREF="../../../../org/apache/struts/action/ActionForm.html#validate(org.apache.struts.action.ActionMapping, javax.servlet.http.HttpServletRequest)">validate</A>, <A HREF="../../../../org/apache/struts/action/ActionForm.html#validate(org.apache.struts.action.ActionMapping, javax.servlet.ServletRequest)">validate</A></CODE></TD>
349
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
350
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
351
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
352
<TD><B>Methods inherited from class java.lang.Object</B></TD>
354
<TR BGCOLOR="white" CLASS="TableRowColor">
355
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
361
<!-- ============ FIELD DETAIL =========== -->
363
<A NAME="field_detail"><!-- --></A>
364
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
365
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
366
<TD COLSPAN=1><FONT SIZE="+2">
367
<B>Field Detail</B></FONT></TD>
371
<A NAME="dynaClass"><!-- --></A><H3>
374
protected <A HREF="../../../../org/apache/struts/action/DynaActionFormClass.html">DynaActionFormClass</A> <B>dynaClass</B></PRE>
376
<DD>The DynaActionFormClass with which we are associated.
383
<A NAME="dynaValues"><!-- --></A><H3>
386
protected java.util.HashMap <B>dynaValues</B></PRE>
388
<DD>The set of property values for this DynaActionForm, keyed by
395
<!-- ========= CONSTRUCTOR DETAIL ======== -->
397
<A NAME="constructor_detail"><!-- --></A>
398
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
399
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
400
<TD COLSPAN=1><FONT SIZE="+2">
401
<B>Constructor Detail</B></FONT></TD>
405
<A NAME="DynaActionForm()"><!-- --></A><H3>
408
public <B>DynaActionForm</B>()</PRE>
412
<!-- ============ METHOD DETAIL ========== -->
414
<A NAME="method_detail"><!-- --></A>
415
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
416
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
417
<TD COLSPAN=1><FONT SIZE="+2">
418
<B>Method Detail</B></FONT></TD>
422
<A NAME="initialize(org.apache.struts.action.ActionMapping)"><!-- --></A><H3>
425
public void <B>initialize</B>(<A HREF="../../../../org/apache/struts/action/ActionMapping.html">ActionMapping</A> mapping)</PRE>
427
<DD><p>Initialize all bean properties to their initial values, as specified
428
in the <A HREF="../../../../org/apache/struts/config/FormPropertyConfig.html"><CODE>FormPropertyConfig</CODE></A> elements associated with the
429
definition of this <code>DynaActionForm</code>.</p>
435
<DT><B>Parameters:</B><DD><CODE>mapping</CODE> - The mapping used to select this instance<DT><B>Since:</B></DT>
442
<A NAME="reset(org.apache.struts.action.ActionMapping, javax.servlet.ServletRequest)"><!-- --></A><H3>
445
public void <B>reset</B>(<A HREF="../../../../org/apache/struts/action/ActionMapping.html">ActionMapping</A> mapping,
446
javax.servlet.ServletRequest request)</PRE>
448
<DD><p>Reset all bean properties to their default state. This method is
449
called before the properties are repopulated by the controller
452
<p>The default implementation attempts to forward to the HTTP
453
version of this method.</p>
456
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/struts/action/ActionForm.html#reset(org.apache.struts.action.ActionMapping, javax.servlet.ServletRequest)">reset</A></CODE> in class <CODE><A HREF="../../../../org/apache/struts/action/ActionForm.html">ActionForm</A></CODE></DL>
459
<DT><B>Parameters:</B><DD><CODE>mapping</CODE> - The mapping used to select this instance<DD><CODE>request</CODE> - The servlet request we are processing</DL>
464
<A NAME="reset(org.apache.struts.action.ActionMapping, javax.servlet.http.HttpServletRequest)"><!-- --></A><H3>
467
public void <B>reset</B>(<A HREF="../../../../org/apache/struts/action/ActionMapping.html">ActionMapping</A> mapping,
468
javax.servlet.http.HttpServletRequest request)</PRE>
470
<DD><p>Reset all bean properties to their default state. This method is
471
called before the properties are repopulated by the controller servlet.
474
<p>The default implementation (since Struts 1.1) does nothing.
475
Subclasses may override this method to reset bean properties to
476
default values, or the <code>initialize()</code> method may be used to
477
initialize property values to those provided in the form property
478
configuration information (which was the previous behavior of
482
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/struts/action/ActionForm.html#reset(org.apache.struts.action.ActionMapping, javax.servlet.http.HttpServletRequest)">reset</A></CODE> in class <CODE><A HREF="../../../../org/apache/struts/action/ActionForm.html">ActionForm</A></CODE></DL>
485
<DT><B>Parameters:</B><DD><CODE>mapping</CODE> - The mapping used to select this instance<DD><CODE>request</CODE> - The servlet request we are processing</DL>
490
<A NAME="contains(java.lang.String, java.lang.String)"><!-- --></A><H3>
493
public boolean <B>contains</B>(java.lang.String name,
494
java.lang.String key)</PRE>
496
<DD>Indicates if the specified mapped property contain a value for the specified
500
<DT><B>Specified by:</B><DD><CODE>contains</CODE> in interface <CODE>org.apache.commons.beanutils.DynaBean</CODE></DL>
503
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the property to check<DD><CODE>key</CODE> - Name of the key to check
505
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if there is no property
506
of the specified name</DL>
511
<A NAME="get(java.lang.String)"><!-- --></A><H3>
514
public java.lang.Object <B>get</B>(java.lang.String name)</PRE>
516
<DD>Return the value of a simple property with the specified name.
519
<DT><B>Specified by:</B><DD><CODE>get</CODE> in interface <CODE>org.apache.commons.beanutils.DynaBean</CODE></DL>
522
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the property whose value is to be retrieved
524
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if there is no property
525
of the specified name
526
<DD><CODE>java.lang.NullPointerException</CODE> - if the type specified for the
527
property is invalid</DL>
532
<A NAME="get(java.lang.String, int)"><!-- --></A><H3>
535
public java.lang.Object <B>get</B>(java.lang.String name,
536
int index)</PRE>
538
<DD>Return the value of an indexed property with the specified name.
541
<DT><B>Specified by:</B><DD><CODE>get</CODE> in interface <CODE>org.apache.commons.beanutils.DynaBean</CODE></DL>
544
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the property whose value is to be retrieved<DD><CODE>index</CODE> - Index of the value to be retrieved
546
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if there is no property
547
of the specified name
548
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if the specified property
549
exists, but is not indexed
550
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - if the specified index
551
is outside the range of the underlying property
552
<DD><CODE>java.lang.NullPointerException</CODE> - if no array or List has been
553
initialized for this property</DL>
558
<A NAME="get(java.lang.String, java.lang.String)"><!-- --></A><H3>
561
public java.lang.Object <B>get</B>(java.lang.String name,
562
java.lang.String key)</PRE>
564
<DD>Return the value of a mapped property with the specified name,
565
or <code>null</code> if there is no value for the specified key.
568
<DT><B>Specified by:</B><DD><CODE>get</CODE> in interface <CODE>org.apache.commons.beanutils.DynaBean</CODE></DL>
571
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the property whose value is to be retrieved<DD><CODE>key</CODE> - Key of the value to be retrieved
573
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if there is no property
574
of the specified name
575
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if the specified property
576
exists, but is not mapped</DL>
581
<A NAME="getDynaClass()"><!-- --></A><H3>
584
public org.apache.commons.beanutils.DynaClass <B>getDynaClass</B>()</PRE>
586
<DD>Return the <code>DynaClass</code> instance that describes the set of
587
properties available for this DynaBean.
590
<DT><B>Specified by:</B><DD><CODE>getDynaClass</CODE> in interface <CODE>org.apache.commons.beanutils.DynaBean</CODE></DL>
598
<A NAME="getMap()"><!-- --></A><H3>
601
public java.util.Map <B>getMap</B>()</PRE>
603
<DD>Returns the <code>Map</code> containing the property values. This is
604
done mostly to facilitate accessing the <code>DynaActionForm</code>
605
through JavaBeans accessors, in order to use the JavaServer Pages
606
Standard Tag Library.
608
For instance, the normal JSTL EL syntax for accessing an
609
<code>ActionForm</code> would be something like this:
611
${formbean.prop}</pre>
612
The JSTL EL syntax for accessing a <code>DynaActionForm</code> looks
613
something like this (because of the presence of this
614
<code>getMap()</code> method):
616
${dynabean.map.prop}</pre>
627
<A NAME="remove(java.lang.String, java.lang.String)"><!-- --></A><H3>
630
public void <B>remove</B>(java.lang.String name,
631
java.lang.String key)</PRE>
633
<DD>Remove any existing value for the specified key on the
634
specified mapped property.
637
<DT><B>Specified by:</B><DD><CODE>remove</CODE> in interface <CODE>org.apache.commons.beanutils.DynaBean</CODE></DL>
640
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the property for which a value is to
641
be removed<DD><CODE>key</CODE> - Key of the value to be removed
643
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if there is no property
644
of the specified name</DL>
649
<A NAME="set(java.lang.String, java.lang.Object)"><!-- --></A><H3>
652
public void <B>set</B>(java.lang.String name,
653
java.lang.Object value)</PRE>
655
<DD>Set the value of a simple property with the specified name.
658
<DT><B>Specified by:</B><DD><CODE>set</CODE> in interface <CODE>org.apache.commons.beanutils.DynaBean</CODE></DL>
661
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the property whose value is to be set<DD><CODE>value</CODE> - Value to which this property is to be set
663
<DD><CODE>org.apache.commons.beanutils.ConversionException</CODE> - if the specified value cannot be
664
converted to the type required for this property
665
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if there is no property
666
of the specified name
667
<DD><CODE>java.lang.NullPointerException</CODE> - if the type specified for the
669
<DD><CODE>java.lang.NullPointerException</CODE> - if an attempt is made to set a
670
primitive property to null</DL>
675
<A NAME="set(java.lang.String, int, java.lang.Object)"><!-- --></A><H3>
678
public void <B>set</B>(java.lang.String name,
680
java.lang.Object value)</PRE>
682
<DD>Set the value of an indexed property with the specified name.
685
<DT><B>Specified by:</B><DD><CODE>set</CODE> in interface <CODE>org.apache.commons.beanutils.DynaBean</CODE></DL>
688
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the property whose value is to be set<DD><CODE>index</CODE> - Index of the property to be set<DD><CODE>value</CODE> - Value to which this property is to be set
690
<DD><CODE>org.apache.commons.beanutils.ConversionException</CODE> - if the specified value cannot be
691
converted to the type required for this property
692
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if there is no property
693
of the specified name
694
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if the specified property
695
exists, but is not indexed
696
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - if the specified index
697
is outside the range of the underlying property</DL>
702
<A NAME="set(java.lang.String, java.lang.String, java.lang.Object)"><!-- --></A><H3>
705
public void <B>set</B>(java.lang.String name,
706
java.lang.String key,
707
java.lang.Object value)</PRE>
709
<DD>Set the value of a mapped property with the specified name.
712
<DT><B>Specified by:</B><DD><CODE>set</CODE> in interface <CODE>org.apache.commons.beanutils.DynaBean</CODE></DL>
715
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the property whose value is to be set<DD><CODE>key</CODE> - Key of the property to be set<DD><CODE>value</CODE> - Value to which this property is to be set
717
<DD><CODE>org.apache.commons.beanutils.ConversionException</CODE> - if the specified value cannot be
718
converted to the type required for this property
719
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if there is no property
720
of the specified name
721
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if the specified property
722
exists, but is not mapped</DL>
727
<A NAME="toString()"><!-- --></A><H3>
730
public java.lang.String <B>toString</B>()</PRE>
732
<DD>Render a String representation of this object.
735
<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
743
<A NAME="setDynaActionFormClass(org.apache.struts.action.DynaActionFormClass)"><!-- --></A><H3>
744
setDynaActionFormClass</H3>
746
void <B>setDynaActionFormClass</B>(<A HREF="../../../../org/apache/struts/action/DynaActionFormClass.html">DynaActionFormClass</A> dynaClass)</PRE>
748
<DD>Set the DynaActionFormClass instance that we are associated with.
754
<DT><B>Parameters:</B><DD><CODE>dynaClass</CODE> - The DynaActionFormClass instance for this bean</DL>
759
<A NAME="getDynaProperty(java.lang.String)"><!-- --></A><H3>
762
protected org.apache.commons.beanutils.DynaProperty <B>getDynaProperty</B>(java.lang.String name)</PRE>
764
<DD>Return the property descriptor for the specified property name.
770
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the property for which to retrieve the descriptor
772
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if this is not a valid property
773
name for our DynaClass</DL>
778
<A NAME="isDynaAssignable(java.lang.Class, java.lang.Class)"><!-- --></A><H3>
779
isDynaAssignable</H3>
781
protected boolean <B>isDynaAssignable</B>(java.lang.Class dest,
782
java.lang.Class source)</PRE>
784
<DD>Indicates if an object of the source class is assignable to the destination class.
790
<DT><B>Parameters:</B><DD><CODE>dest</CODE> - Destination class<DD><CODE>source</CODE> - Source class</DL>
793
<!-- ========= END OF CLASS DATA ========= -->
796
<!-- ========== START OF NAVBAR ========== -->
797
<A NAME="navbar_bottom"><!-- --></A>
798
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
800
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
801
<A NAME="navbar_bottom_firstrow"><!-- --></A>
802
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
803
<TR ALIGN="center" VALIGN="top">
804
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
805
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
806
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
807
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DynaActionForm.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
808
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
809
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
810
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
811
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
815
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
821
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
822
<A HREF="../../../../org/apache/struts/action/ActionServletWrapper.html"><B>PREV CLASS</B></A>
823
<A HREF="../../../../org/apache/struts/action/DynaActionFormClass.html"><B>NEXT CLASS</B></A></FONT></TD>
824
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
825
<A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
826
<A HREF="DynaActionForm.html" TARGET="_top"><B>NO FRAMES</B></A>
831
document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
836
<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
841
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
842
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
843
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
844
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
847
<!-- =========== END OF NAVBAR =========== -->
850
Copyright � 2000-2003 - Apache Software Foundation