commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/http PostTag.java
Date Thu, 19 Dec 2002 00:29:22 GMT
dion        2002/12/18 16:29:22

  Modified:    jelly/src/java/org/apache/commons/jelly/tags/http
                        PostTag.java
  Log:
  Fix for post tag sending params as part of the query string.
  Thanks to greg farris
  
  Revision  Changes    Path
  1.4       +2 -2      jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/http/PostTag.java
  
  Index: PostTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/http/PostTag.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- PostTag.java	23 Oct 2002 16:35:35 -0000	1.3
  +++ PostTag.java	19 Dec 2002 00:29:22 -0000	1.4
  @@ -101,12 +101,12 @@
        * This method <strong>must</strong> be called after 
        *  {@link getHttpUrlMethod}
        */
  -    protected void setParameters() {
  +    protected void setParameters(HttpUrlMethod method) {
           NameValuePair nvp = null;
           for (int index = 0; index < getParameters().size(); index++) {
               NameValuePair parameter = (NameValuePair) getParameters().
                   get(index);
  -            _postMethod.addParameter(parameter);
  +            ((UrlPostMethod) method).addParameter(parameter);
           }
       }
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message