Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 95556 invoked from network); 11 Mar 2005 16:41:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Mar 2005 16:41:09 -0000 Received: (qmail 3297 invoked by uid 500); 11 Mar 2005 16:41:06 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 2967 invoked by uid 500); 11 Mar 2005 16:41:05 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 2952 invoked by uid 99); 11 Mar 2005 16:41:05 -0000 X-ASF-Spam-Status: No, hits=6.5 required=10.0 tests=DATE_IN_PAST_96_XX,DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,FORGED_MUA_OUTLOOK,FROM_ENDS_IN_NUMS,HTML_40_50,HTML_MESSAGE,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of smarto59@hotmail.com designates 64.4.37.180 as permitted sender) Received: from bay10-dav6.bay10.hotmail.com (HELO hotmail.com) (64.4.37.180) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 11 Mar 2005 08:41:03 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 11 Mar 2005 08:41:02 -0800 Message-ID: Received: from 212.138.47.13 by BAY10-DAV6.phx.gbl with DAV; Fri, 11 Mar 2005 16:41:02 +0000 X-Originating-IP: [212.138.47.13] X-Originating-Email: [smarto59@hotmail.com] X-Sender: smarto59@hotmail.com From: "polaris" To: Subject: [HTTPClient]putmethod Date: Sun, 27 Feb 2005 05:46:09 -0000 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0016_01C51C8F.A38CC560" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-OriginalArrivalTime: 11 Mar 2005 16:41:02.0337 (UTC) FILETIME=[1C948F10:01C52659] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0016_01C51C8F.A38CC560 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I use the following code to update a file exits in tomcat v 5.5.8 = server machine periodically. the problem simply is that the file could not be uploaded though the = returned boolean value is true. I suppose the files are uploaded to the defaul tomcat directory = webapps/ROOT //************************************************// String url =3D "http://localhost:8080/"; HttpClient client =3D new HttpClient(url); HttpURL hrl =3D new HttpURL(url); hrl.setUserinfo("user","pass"); WebdavResource resource =3D new WebdavResource(hrl); String filename =3D "FileIndexPage.xml"; File file =3D new File(filename); String path =3D resource.getPath() + "/" + filename; resource.putMethod( path,file ); resource.close(); //***************************************************// =3D pleas help :-0 ------=_NextPart_000_0016_01C51C8F.A38CC560--