jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 14214] New: - [PATCH] io:http - can't invoke POS
Date Mon, 04 Nov 2002 08:56:19 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14214>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14214

[PATCH] io:http - can't invoke POS

           Summary: [PATCH] io:http - can't invoke POS
           Product: Taglibs
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: IO Taglib
        AssignedTo: taglibs-dev@jakarta.apache.org
        ReportedBy: nikitinva@mail.ru


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

--
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