Bug 14214 - [PATCH] io:http - can't invoke POS
Summary: [PATCH] io:http - can't invoke POS
Status: RESOLVED LATER
Alias: None
Product: Taglibs
Classification: Unclassified
Component: IO Taglib (show other bugs)
Version: unspecified
Hardware: All All
: P3 major (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-04 08:56 UTC by Vladimir Nikitin
Modified: 2009-11-29 19:38 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Nikitin 2002-11-04 08:56:18 UTC
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.

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
Comment 1 Henri Yandell 2009-11-29 19:38:36 UTC
Resolving. Taglib has been retired.