jmcnally    2002/07/23 11:08:22

  Modified:    src/java/org/apache/turbine DynamicURI.java
  Log:
  convenience method for adding a boolean parameter to an url
  
  Revision  Changes    Path
  1.11      +13 -1     jakarta-turbine-3/src/java/org/apache/turbine/DynamicURI.java
  
  Index: DynamicURI.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-3/src/java/org/apache/turbine/DynamicURI.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- DynamicURI.java   11 Jul 2002 03:11:46 -0000      1.10
  +++ DynamicURI.java   23 Jul 2002 18:08:22 -0000      1.11
  @@ -394,6 +394,18 @@
       }
   
       /**
  +     * Adds a name=value pair to the path_info string.
  +     *
  +     * @param name A String with the name to add.
  +     * @param value A double with the value to add.
  +     */
  +    public DynamicURI addPathInfo(String name, boolean value)
  +    {
  +        addPathInfo(name, (value ? "true" : "false"));
  +        return this;
  +    }
  +
  +    /**
        * Adds a name=value pair for every entry in a ParameterParser
        * object to the path_info string.
        *
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to