You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by dg...@apache.org on 2003/04/29 04:55:24 UTC

cvs commit: jakarta-struts/src/share/org/apache/struts/action ActionForm.java

dgraham     2003/04/28 19:55:24

  Modified:    src/share/org/apache/struts/action ActionForm.java
  Log:
  Added javadoc to reset method to clarify its role.
  
  Revision  Changes    Path
  1.15      +12 -5     jakarta-struts/src/share/org/apache/struts/action/ActionForm.java
  
  Index: ActionForm.java
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/action/ActionForm.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- ActionForm.java	15 Apr 2003 00:18:45 -0000	1.14
  +++ ActionForm.java	29 Apr 2003 02:55:24 -0000	1.15
  @@ -93,7 +93,7 @@
    * protected methods for which they wish to provide modified functionality.
    * </p>
    *
  - * <p>Since ActionForms are JavaBean, subclasses should also implement
  + * <p>Because ActionForms are JavaBeans, subclasses should also implement
    * <code>Serializable</code>, as required by the JavaBean specification.
    * Some containers require that an object meet all JavaBean requirements
    * in order to use the introspection API upon which ActionForms rely.</p>
  @@ -211,6 +211,13 @@
        * <p>
        * The default implementation does nothing.  Subclasses should override
        * this method to reset all bean properties to default values.
  +     * </p>
  +     * <p>
  +     * This method is <strong>not</strong> the appropriate place to initialize form values
  +     * for an "update" type page (this should be done in a setup Action).  You mainly 
  +     * need to worry about setting checkbox values to false; most of the time you 
  +     * can leave this method unimplemented.
  +     * </p>
        *
        * @param mapping The mapping used to select this instance
        * @param request The servlet request we are processing
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org