jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Владимир Никитин" <Nikiti...@mail.ru>
Subject [PATCH] io:http - can't invoke POST
Date Fri, 01 Nov 2002 14:42:43 GMT
Hi.

This patch eliminates bug in HTTP tag IO tag library. The bug appears then
one set attribute ACTION tag HTTP to POST. Tag HTTP doesn't invoke method
POST instead of it invokes method GET. After applying this patch tag HTTP
can invoke method POST.

With best regards Vladimir Nikitin.

patch:
----------------------------------------------------------------------------
-------------------------------------------------

Index: HttpTag.java
===================================================================
RCS file:
/home/cvspublic/jakarta-taglibs/io/src/org/apache/taglibs/io/HttpTag.java,v
retrieving revision 1.1
diff -u -r1.1 HttpTag.java
--- HttpTag.java 4 May 2001 18:08:09 -0000 1.1
+++ HttpTag.java 1 Nov 2002 12:01:44 -0000
@@ -105,11 +105,11 @@

     // Implementation methods

//-------------------------------------------------------------------------
-    protected void configureConnection( HttpURLConnection connection )
throws IOException {
+    protected void configureConnection( URLConnection connection ) throws
IOException {
         super.configureConnection(connection);

         HttpURLConnection httpConnection = (HttpURLConnection) connection;
-        connection.setRequestMethod( action );
+        httpConnection.setRequestMethod( action );
     }

     /** @return true if the given HTTP action should result in some




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


Mime
View raw message