Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 74259 invoked from network); 20 Oct 2006 15:38:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Oct 2006 15:38:06 -0000 Received: (qmail 89435 invoked by uid 500); 20 Oct 2006 15:37:48 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 89409 invoked by uid 500); 20 Oct 2006 15:37:48 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 89398 invoked by uid 99); 20 Oct 2006 15:37:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Oct 2006 08:37:48 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [204.127.200.85] (HELO sccrmhc15.comcast.net) (204.127.200.85) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Oct 2006 08:37:46 -0700 Received: from [192.168.1.47] (c-69-143-26-154.hsd1.va.comcast.net[69.143.26.154]) by comcast.net (sccrmhc15) with ESMTP id <2006102015372501500mbvc9e>; Fri, 20 Oct 2006 15:37:25 +0000 Message-ID: <4538ED30.10403@christopherschultz.net> Date: Fri, 20 Oct 2006 11:37:20 -0400 From: Christopher Schultz User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Receiving PUT-messages - calling doPUT References: <714eeea60610200804p3d383d00rfe9827a019e427a8@mail.gmail.com> In-Reply-To: <714eeea60610200804p3d383d00rfe9827a019e427a8@mail.gmail.com> X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigC3BD01D0FF4AD61907C7DDCD" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --------------enigC3BD01D0FF4AD61907C7DDCD Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Philipp, > I need to receive data via the PUT-method instead of POST. Unfortunatel= y > Tomcat by default calls the doGET-method of a given Servlet instead of > doPUT when it receives data by put-method. This doesn't sound right. javax.servlet.http.HttpServlet has a method, doPut, that has the same signature of doGet and doPost. It's default action is to send an error message to the client. All you should have to do is implement doPut in your servlet and everything will work out. This shouldn't have anything to do with Tomcat. -chris --------------enigC3BD01D0FF4AD61907C7DDCD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFOO0w9CaO5/Lv0PARApdqAJ94uGWHKtrJqOLBgm0xeoHIyVFRNQCeJutG s3Wp/oGB6nuvW7Htsx0muyU= =lkJd -----END PGP SIGNATURE----- --------------enigC3BD01D0FF4AD61907C7DDCD--