You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by hu...@apache.org on 2004/03/16 22:06:03 UTC

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

husted      2004/03/16 13:06:03

  Modified:    src/share/org/apache/struts/action ActionForward.java
  Log:
  Add "copy constructor" per suggestion by Jay Glanville on Struts-User
  
  Revision  Changes    Path
  1.15      +14 -4     jakarta-struts/src/share/org/apache/struts/action/ActionForward.java
  
  Index: ActionForward.java
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/action/ActionForward.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- ActionForward.java	14 Mar 2004 06:23:42 -0000	1.14
  +++ ActionForward.java	16 Mar 2004 21:06:03 -0000	1.15
  @@ -143,4 +143,14 @@
       }
   
   
  +    /**
  +     * <p>Construct a new instance based on the values of another ActionForward.</p>
  +     *
  +     * @param copyMe An ActionForward instance to copy
  +     * @since Struts 1.2.1
  +     */
  +    public ActionForward(ActionForward copyMe) {
  +        this(copyMe.getName(),copyMe.getPath(),copyMe.getRedirect(),copyMe.getContextRelative());
  +    }
  +
   }
  
  
  

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