You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by di...@apache.org on 2002/12/19 01:29:22 UTC

cvs commit: jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/http PostTag.java

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>