You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by ni...@apache.org on 2004/09/03 04:47:00 UTC

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

niallp      2004/09/02 19:47:00

  Modified:    src/share/org/apache/struts/action ActionForward.java
  Log:
  Bug 30884 include module in ActionForward "copy" constructor - patch supplied by Hubert Rabago
  
  Revision  Changes    Path
  1.16      +27 -5     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.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- ActionForward.java	16 Mar 2004 21:06:03 -0000	1.15
  +++ ActionForward.java	3 Sep 2004 02:47:00 -0000	1.16
  @@ -130,6 +130,7 @@
        * @param path Path for this instance
        * @param redirect Redirect flag for this instance
        * @param contextRelative Context relative flag for this instance
  +     * @deprecated Use module rather than contextRelative
        */
       public ActionForward(String name, String path, boolean redirect,
                            boolean contextRelative) {
  @@ -144,13 +145,34 @@
   
   
       /**
  +     * Construct a new instance with the specified values.
  +     *
  +     * @param name Name of this forward
  +     * @param path Path to which control should be forwarded or redirected
  +     * @param redirect Should we do a redirect?
  +     * @param module Module prefix, if any
  +     */
  +    public ActionForward(String name, String path, boolean redirect,
  +                         String module) {
  +
  +        super();
  +        setName(name);
  +        setPath(path);
  +        setRedirect(redirect);
  +        setModule(module);
  +
  +    }
  +
  +
  +    /**
        * <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());
  +        this(copyMe.getName(),copyMe.getPath(),copyMe.getRedirect(),copyMe.getModule());
  +        setContextRelative(copyMe.getContextRelative());
       }
   
   }
  
  
  

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