| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd"> |
| <!--NewPage--> |
| <HTML> |
| <HEAD> |
| <!-- Generated by javadoc on Fri Aug 22 03:44:10 EDT 2003 --> |
| <TITLE> |
| DynaActionForm (Apache Struts API Documentation) |
| </TITLE> |
| <META NAME="keywords" CONTENT="org.apache.struts.action.DynaActionForm,DynaActionForm class"> |
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
| </HEAD> |
| <SCRIPT> |
| function asd() |
| { |
| parent.document.title="DynaActionForm (Apache Struts API Documentation)"; |
| } |
| </SCRIPT> |
| <BODY BGCOLOR="white" onload="asd();"> |
| |
| <!-- ========== START OF NAVBAR ========== --> |
| <A NAME="navbar_top"><!-- --></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> |
| <TR> |
| <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_top_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> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DynaActionForm.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../org/apache/struts/action/ActionServletWrapper.html"><B>PREV CLASS</B></A> |
| <A HREF="../../../../org/apache/struts/action/DynaActionFormClass.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> |
| <A HREF="DynaActionForm.html" TARGET="_top"><B>NO FRAMES</B></A> |
| |
| <SCRIPT> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A> |
| </NOSCRIPT> |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <!-- =========== END OF NAVBAR =========== --> |
| |
| <HR> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <H2> |
| <FONT SIZE="-1"> |
| org.apache.struts.action</FONT> |
| <BR> |
| Class DynaActionForm</H2> |
| <PRE> |
| java.lang.Object |
| | |
| +--<A HREF="../../../../org/apache/struts/action/ActionForm.html">org.apache.struts.action.ActionForm</A> |
| | |
| +--<B>org.apache.struts.action.DynaActionForm</B> |
| </PRE> |
| <DL> |
| <DT><B>All Implemented Interfaces:</B> <DD>org.apache.commons.beanutils.DynaBean, java.io.Serializable</DD> |
| </DL> |
| <DL> |
| <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../org/apache/struts/validator/DynaValidatorForm.html">DynaValidatorForm</A></DD> |
| </DL> |
| <HR> |
| <DL> |
| <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> |
| |
| <P> |
| <p>Specialized subclass of <code>ActionForm</code> that allows the creation |
| of form beans with dynamic sets of properties, without requiring the |
| developer to create a Java class for each type of form bean.</p> |
| |
| <p><strong>USAGE NOTE</strong> - Since Struts 1.1, the |
| <code>reset()</code> method no longer initializes property values to those |
| specified in <code><form-property></code> elements in the Struts |
| module configuration file. If you wish to utilize that behavior, the |
| simplest solution is to subclass <code>DynaActionForm</code> and call |
| the <code>initialize()</code> method inside it.</p> |
| <P> |
| |
| <P> |
| <DL> |
| <DT><B>Since:</B></DT> |
| <DD>Struts 1.1</DD> |
| <DT><B>Version:</B></DT> |
| <DD>$Revision: 1.1 $ $Date$</DD> |
| <DT><B>Author:</B></DT> |
| <DD>Craig R. McClanahan</DD> |
| <DT><B>See Also:</B><DD><A HREF="../../../../serialized-form.html" TARGET="org.apache.struts.action.DynaActionForm">Serialized Form</A></DL> |
| <HR> |
| |
| <P> |
| <!-- ======== NESTED CLASS SUMMARY ======== --> |
| |
| |
| <!-- =========== FIELD SUMMARY =========== --> |
| |
| <A NAME="field_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=2><FONT SIZE="+2"> |
| <B>Field Summary</B></FONT></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected <A HREF="../../../../org/apache/struts/action/DynaActionFormClass.html">DynaActionFormClass</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionForm.html#dynaClass">dynaClass</A></B></CODE> |
| |
| <BR> |
| The DynaActionFormClass with which we are associated.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected java.util.HashMap</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionForm.html#dynaValues">dynaValues</A></B></CODE> |
| |
| <BR> |
| The set of property values for this DynaActionForm, keyed by |
| property name.</TD> |
| </TR> |
| </TABLE> |
| <A NAME="fields_inherited_from_class_org.apache.struts.action.ActionForm"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TD><B>Fields inherited from class org.apache.struts.action.<A HREF="../../../../org/apache/struts/action/ActionForm.html">ActionForm</A></B></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <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> |
| </TR> |
| </TABLE> |
| |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| |
| <A NAME="constructor_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=2><FONT SIZE="+2"> |
| <B>Constructor Summary</B></FONT></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionForm.html#DynaActionForm()">DynaActionForm</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ========== METHOD SUMMARY =========== --> |
| |
| <A NAME="method_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=2><FONT SIZE="+2"> |
| <B>Method Summary</B></FONT></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <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, |
| java.lang.String key)</CODE> |
| |
| <BR> |
| Indicates if the specified mapped property contain a value for the specified |
| key value.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.Object</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionForm.html#get(java.lang.String)">get</A></B>(java.lang.String name)</CODE> |
| |
| <BR> |
| Return the value of a simple property with the specified name.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.Object</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionForm.html#get(java.lang.String, int)">get</A></B>(java.lang.String name, |
| int index)</CODE> |
| |
| <BR> |
| Return the value of an indexed property with the specified name.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.Object</CODE></FONT></TD> |
| <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, |
| java.lang.String key)</CODE> |
| |
| <BR> |
| Return the value of a mapped property with the specified name, |
| or <code>null</code> if there is no value for the specified key.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> org.apache.commons.beanutils.DynaClass</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionForm.html#getDynaClass()">getDynaClass</A></B>()</CODE> |
| |
| <BR> |
| Return the <code>DynaClass</code> instance that describes the set of |
| properties available for this DynaBean.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected org.apache.commons.beanutils.DynaProperty</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionForm.html#getDynaProperty(java.lang.String)">getDynaProperty</A></B>(java.lang.String name)</CODE> |
| |
| <BR> |
| Return the property descriptor for the specified property name.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.util.Map</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionForm.html#getMap()">getMap</A></B>()</CODE> |
| |
| <BR> |
| Returns the <code>Map</code> containing the property values.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <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> |
| |
| <BR> |
| Initialize all bean properties to their initial values, as specified |
| in the <A HREF="../../../../org/apache/struts/config/FormPropertyConfig.html"><CODE>FormPropertyConfig</CODE></A> elements associated with the |
| definition of this <code>DynaActionForm</code>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected boolean</CODE></FONT></TD> |
| <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, |
| java.lang.Class source)</CODE> |
| |
| <BR> |
| Indicates if an object of the source class is assignable to the destination class.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <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, |
| java.lang.String key)</CODE> |
| |
| <BR> |
| Remove any existing value for the specified key on the |
| specified mapped property.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <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, |
| javax.servlet.http.HttpServletRequest request)</CODE> |
| |
| <BR> |
| Reset all bean properties to their default state.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <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, |
| javax.servlet.ServletRequest request)</CODE> |
| |
| <BR> |
| Reset all bean properties to their default state.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <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, |
| int index, |
| java.lang.Object value)</CODE> |
| |
| <BR> |
| Set the value of an indexed property with the specified name.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <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, |
| java.lang.Object value)</CODE> |
| |
| <BR> |
| Set the value of a simple property with the specified name.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <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, |
| java.lang.String key, |
| java.lang.Object value)</CODE> |
| |
| <BR> |
| Set the value of a mapped property with the specified name.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>(package private) void</CODE></FONT></TD> |
| <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> |
| |
| <BR> |
| Set the DynaActionFormClass instance that we are associated with.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionForm.html#toString()">toString</A></B>()</CODE> |
| |
| <BR> |
| Render a String representation of this object.</TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_org.apache.struts.action.ActionForm"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TD><B>Methods inherited from class org.apache.struts.action.<A HREF="../../../../org/apache/struts/action/ActionForm.html">ActionForm</A></B></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <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> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TD><B>Methods inherited from class java.lang.Object</B></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD> |
| </TR> |
| </TABLE> |
| |
| <P> |
| |
| <!-- ============ FIELD DETAIL =========== --> |
| |
| <A NAME="field_detail"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=1><FONT SIZE="+2"> |
| <B>Field Detail</B></FONT></TD> |
| </TR> |
| </TABLE> |
| |
| <A NAME="dynaClass"><!-- --></A><H3> |
| dynaClass</H3> |
| <PRE> |
| protected <A HREF="../../../../org/apache/struts/action/DynaActionFormClass.html">DynaActionFormClass</A> <B>dynaClass</B></PRE> |
| <DL> |
| <DD>The DynaActionFormClass with which we are associated. |
| <P> |
| <DL> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="dynaValues"><!-- --></A><H3> |
| dynaValues</H3> |
| <PRE> |
| protected java.util.HashMap <B>dynaValues</B></PRE> |
| <DL> |
| <DD>The set of property values for this DynaActionForm, keyed by |
| property name. |
| <P> |
| <DL> |
| </DL> |
| </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="DynaActionForm()"><!-- --></A><H3> |
| DynaActionForm</H3> |
| <PRE> |
| public <B>DynaActionForm</B>()</PRE> |
| <DL> |
| </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="initialize(org.apache.struts.action.ActionMapping)"><!-- --></A><H3> |
| initialize</H3> |
| <PRE> |
| public void <B>initialize</B>(<A HREF="../../../../org/apache/struts/action/ActionMapping.html">ActionMapping</A> mapping)</PRE> |
| <DL> |
| <DD><p>Initialize all bean properties to their initial values, as specified |
| in the <A HREF="../../../../org/apache/struts/config/FormPropertyConfig.html"><CODE>FormPropertyConfig</CODE></A> elements associated with the |
| definition of this <code>DynaActionForm</code>.</p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>mapping</CODE> - The mapping used to select this instance<DT><B>Since:</B></DT> |
| <DD>Struts 1.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="reset(org.apache.struts.action.ActionMapping, javax.servlet.ServletRequest)"><!-- --></A><H3> |
| reset</H3> |
| <PRE> |
| public void <B>reset</B>(<A HREF="../../../../org/apache/struts/action/ActionMapping.html">ActionMapping</A> mapping, |
| javax.servlet.ServletRequest request)</PRE> |
| <DL> |
| <DD><p>Reset all bean properties to their default state. This method is |
| called before the properties are repopulated by the controller |
| servlet.</p> |
| |
| <p>The default implementation attempts to forward to the HTTP |
| version of this method.</p> |
| <P> |
| <DD><DL> |
| <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> |
| </DD> |
| <DD><DL> |
| <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> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="reset(org.apache.struts.action.ActionMapping, javax.servlet.http.HttpServletRequest)"><!-- --></A><H3> |
| reset</H3> |
| <PRE> |
| public void <B>reset</B>(<A HREF="../../../../org/apache/struts/action/ActionMapping.html">ActionMapping</A> mapping, |
| javax.servlet.http.HttpServletRequest request)</PRE> |
| <DL> |
| <DD><p>Reset all bean properties to their default state. This method is |
| called before the properties are repopulated by the controller servlet. |
| </p> |
| |
| <p>The default implementation (since Struts 1.1) does nothing. |
| Subclasses may override this method to reset bean properties to |
| default values, or the <code>initialize()</code> method may be used to |
| initialize property values to those provided in the form property |
| configuration information (which was the previous behavior of |
| this method).</p> |
| <P> |
| <DD><DL> |
| <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> |
| </DD> |
| <DD><DL> |
| <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> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="contains(java.lang.String, java.lang.String)"><!-- --></A><H3> |
| contains</H3> |
| <PRE> |
| public boolean <B>contains</B>(java.lang.String name, |
| java.lang.String key)</PRE> |
| <DL> |
| <DD>Indicates if the specified mapped property contain a value for the specified |
| key value. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE>contains</CODE> in interface <CODE>org.apache.commons.beanutils.DynaBean</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the property to check<DD><CODE>key</CODE> - Name of the key to check |
| <DT><B>Throws:</B> |
| <DD><CODE>java.lang.IllegalArgumentException</CODE> - if there is no property |
| of the specified name</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="get(java.lang.String)"><!-- --></A><H3> |
| get</H3> |
| <PRE> |
| public java.lang.Object <B>get</B>(java.lang.String name)</PRE> |
| <DL> |
| <DD>Return the value of a simple property with the specified name. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE>get</CODE> in interface <CODE>org.apache.commons.beanutils.DynaBean</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the property whose value is to be retrieved |
| <DT><B>Throws:</B> |
| <DD><CODE>java.lang.IllegalArgumentException</CODE> - if there is no property |
| of the specified name |
| <DD><CODE>java.lang.NullPointerException</CODE> - if the type specified for the |
| property is invalid</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="get(java.lang.String, int)"><!-- --></A><H3> |
| get</H3> |
| <PRE> |
| public java.lang.Object <B>get</B>(java.lang.String name, |
| int index)</PRE> |
| <DL> |
| <DD>Return the value of an indexed property with the specified name. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE>get</CODE> in interface <CODE>org.apache.commons.beanutils.DynaBean</CODE></DL> |
| </DD> |
| <DD><DL> |
| <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 |
| <DT><B>Throws:</B> |
| <DD><CODE>java.lang.IllegalArgumentException</CODE> - if there is no property |
| of the specified name |
| <DD><CODE>java.lang.IllegalArgumentException</CODE> - if the specified property |
| exists, but is not indexed |
| <DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - if the specified index |
| is outside the range of the underlying property |
| <DD><CODE>java.lang.NullPointerException</CODE> - if no array or List has been |
| initialized for this property</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="get(java.lang.String, java.lang.String)"><!-- --></A><H3> |
| get</H3> |
| <PRE> |
| public java.lang.Object <B>get</B>(java.lang.String name, |
| java.lang.String key)</PRE> |
| <DL> |
| <DD>Return the value of a mapped property with the specified name, |
| or <code>null</code> if there is no value for the specified key. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE>get</CODE> in interface <CODE>org.apache.commons.beanutils.DynaBean</CODE></DL> |
| </DD> |
| <DD><DL> |
| <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 |
| <DT><B>Throws:</B> |
| <DD><CODE>java.lang.IllegalArgumentException</CODE> - if there is no property |
| of the specified name |
| <DD><CODE>java.lang.IllegalArgumentException</CODE> - if the specified property |
| exists, but is not mapped</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getDynaClass()"><!-- --></A><H3> |
| getDynaClass</H3> |
| <PRE> |
| public org.apache.commons.beanutils.DynaClass <B>getDynaClass</B>()</PRE> |
| <DL> |
| <DD>Return the <code>DynaClass</code> instance that describes the set of |
| properties available for this DynaBean. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE>getDynaClass</CODE> in interface <CODE>org.apache.commons.beanutils.DynaBean</CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getMap()"><!-- --></A><H3> |
| getMap</H3> |
| <PRE> |
| public java.util.Map <B>getMap</B>()</PRE> |
| <DL> |
| <DD>Returns the <code>Map</code> containing the property values. This is |
| done mostly to facilitate accessing the <code>DynaActionForm</code> |
| through JavaBeans accessors, in order to use the JavaServer Pages |
| Standard Tag Library. |
| <p> |
| For instance, the normal JSTL EL syntax for accessing an |
| <code>ActionForm</code> would be something like this: |
| <pre> |
| ${formbean.prop}</pre> |
| The JSTL EL syntax for accessing a <code>DynaActionForm</code> looks |
| something like this (because of the presence of this |
| <code>getMap()</code> method): |
| <pre> |
| ${dynabean.map.prop}</pre> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="remove(java.lang.String, java.lang.String)"><!-- --></A><H3> |
| remove</H3> |
| <PRE> |
| public void <B>remove</B>(java.lang.String name, |
| java.lang.String key)</PRE> |
| <DL> |
| <DD>Remove any existing value for the specified key on the |
| specified mapped property. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE>remove</CODE> in interface <CODE>org.apache.commons.beanutils.DynaBean</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the property for which a value is to |
| be removed<DD><CODE>key</CODE> - Key of the value to be removed |
| <DT><B>Throws:</B> |
| <DD><CODE>java.lang.IllegalArgumentException</CODE> - if there is no property |
| of the specified name</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="set(java.lang.String, java.lang.Object)"><!-- --></A><H3> |
| set</H3> |
| <PRE> |
| public void <B>set</B>(java.lang.String name, |
| java.lang.Object value)</PRE> |
| <DL> |
| <DD>Set the value of a simple property with the specified name. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE>set</CODE> in interface <CODE>org.apache.commons.beanutils.DynaBean</CODE></DL> |
| </DD> |
| <DD><DL> |
| <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 |
| <DT><B>Throws:</B> |
| <DD><CODE>org.apache.commons.beanutils.ConversionException</CODE> - if the specified value cannot be |
| converted to the type required for this property |
| <DD><CODE>java.lang.IllegalArgumentException</CODE> - if there is no property |
| of the specified name |
| <DD><CODE>java.lang.NullPointerException</CODE> - if the type specified for the |
| property is invalid |
| <DD><CODE>java.lang.NullPointerException</CODE> - if an attempt is made to set a |
| primitive property to null</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="set(java.lang.String, int, java.lang.Object)"><!-- --></A><H3> |
| set</H3> |
| <PRE> |
| public void <B>set</B>(java.lang.String name, |
| int index, |
| java.lang.Object value)</PRE> |
| <DL> |
| <DD>Set the value of an indexed property with the specified name. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE>set</CODE> in interface <CODE>org.apache.commons.beanutils.DynaBean</CODE></DL> |
| </DD> |
| <DD><DL> |
| <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 |
| <DT><B>Throws:</B> |
| <DD><CODE>org.apache.commons.beanutils.ConversionException</CODE> - if the specified value cannot be |
| converted to the type required for this property |
| <DD><CODE>java.lang.IllegalArgumentException</CODE> - if there is no property |
| of the specified name |
| <DD><CODE>java.lang.IllegalArgumentException</CODE> - if the specified property |
| exists, but is not indexed |
| <DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - if the specified index |
| is outside the range of the underlying property</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="set(java.lang.String, java.lang.String, java.lang.Object)"><!-- --></A><H3> |
| set</H3> |
| <PRE> |
| public void <B>set</B>(java.lang.String name, |
| java.lang.String key, |
| java.lang.Object value)</PRE> |
| <DL> |
| <DD>Set the value of a mapped property with the specified name. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE>set</CODE> in interface <CODE>org.apache.commons.beanutils.DynaBean</CODE></DL> |
| </DD> |
| <DD><DL> |
| <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 |
| <DT><B>Throws:</B> |
| <DD><CODE>org.apache.commons.beanutils.ConversionException</CODE> - if the specified value cannot be |
| converted to the type required for this property |
| <DD><CODE>java.lang.IllegalArgumentException</CODE> - if there is no property |
| of the specified name |
| <DD><CODE>java.lang.IllegalArgumentException</CODE> - if the specified property |
| exists, but is not mapped</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="toString()"><!-- --></A><H3> |
| toString</H3> |
| <PRE> |
| public java.lang.String <B>toString</B>()</PRE> |
| <DL> |
| <DD>Render a String representation of this object. |
| <P> |
| <DD><DL> |
| <DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setDynaActionFormClass(org.apache.struts.action.DynaActionFormClass)"><!-- --></A><H3> |
| setDynaActionFormClass</H3> |
| <PRE> |
| void <B>setDynaActionFormClass</B>(<A HREF="../../../../org/apache/struts/action/DynaActionFormClass.html">DynaActionFormClass</A> dynaClass)</PRE> |
| <DL> |
| <DD>Set the DynaActionFormClass instance that we are associated with. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>dynaClass</CODE> - The DynaActionFormClass instance for this bean</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getDynaProperty(java.lang.String)"><!-- --></A><H3> |
| getDynaProperty</H3> |
| <PRE> |
| protected org.apache.commons.beanutils.DynaProperty <B>getDynaProperty</B>(java.lang.String name)</PRE> |
| <DL> |
| <DD>Return the property descriptor for the specified property name. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the property for which to retrieve the descriptor |
| <DT><B>Throws:</B> |
| <DD><CODE>java.lang.IllegalArgumentException</CODE> - if this is not a valid property |
| name for our DynaClass</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isDynaAssignable(java.lang.Class, java.lang.Class)"><!-- --></A><H3> |
| isDynaAssignable</H3> |
| <PRE> |
| protected boolean <B>isDynaAssignable</B>(java.lang.Class dest, |
| java.lang.Class source)</PRE> |
| <DL> |
| <DD>Indicates if an object of the source class is assignable to the destination class. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>dest</CODE> - Destination class<DD><CODE>source</CODE> - Source class</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=3 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> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DynaActionForm.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../org/apache/struts/action/ActionServletWrapper.html"><B>PREV CLASS</B></A> |
| <A HREF="../../../../org/apache/struts/action/DynaActionFormClass.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> |
| <A HREF="DynaActionForm.html" TARGET="_top"><B>NO FRAMES</B></A> |
| |
| <SCRIPT> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A> |
| </NOSCRIPT> |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <!-- =========== END OF NAVBAR =========== --> |
| |
| <HR> |
| Copyright © 2000-2003 - Apache Software Foundation |
| </BODY> |
| </HTML> |