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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>