Return-Path: Delivered-To: apmail-jakarta-tapestry-user-archive@www.apache.org Received: (qmail 73405 invoked from network); 1 Sep 2005 16:48:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Sep 2005 16:48:10 -0000 Received: (qmail 83795 invoked by uid 500); 1 Sep 2005 16:48:03 -0000 Delivered-To: apmail-jakarta-tapestry-user-archive@jakarta.apache.org Received: (qmail 83775 invoked by uid 500); 1 Sep 2005 16:48:03 -0000 Mailing-List: contact tapestry-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tapestry users" Reply-To: "Tapestry users" Delivered-To: mailing list tapestry-user@jakarta.apache.org Received: (qmail 83743 invoked by uid 99); 1 Sep 2005 16:48:03 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Sep 2005 09:48:03 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of baredok@gmail.com designates 64.233.184.200 as permitted sender) Received: from [64.233.184.200] (HELO wproxy.gmail.com) (64.233.184.200) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Sep 2005 09:48:18 -0700 Received: by wproxy.gmail.com with SMTP id i1so390993wra for ; Thu, 01 Sep 2005 09:48:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=MKr9zEnbAKfEQygp4+LoKtJY7eYEH5GJWXfsBu5lecRAbu8IRY+yE+svd8uJfwwiOTsOf+c+GtpWIQLHMuJEReiHMEhnr8jh5bBSJY0SVQWYihl3XpjpGwemIemrWptlk1aWlssEe8Me7+EFT0zYJjIl3+2vLspRdBs2FwF3YQY= Received: by 10.54.56.77 with SMTP id e77mr1760154wra; Thu, 01 Sep 2005 09:48:01 -0700 (PDT) Received: by 10.54.118.4 with HTTP; Thu, 1 Sep 2005 09:48:01 -0700 (PDT) Message-ID: Date: Thu, 1 Sep 2005 12:48:01 -0400 From: Nick Stuart To: Tapestry users Subject: TAP4 upload path? Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi all, did some digging and all I can find are references that will work 3.0 but not for 4. So, what is the best way to get the actually full path in your webcontext to upload files to? In 3 you could do something like: String path =3D getRequestCycle().getRequestContext().getServlet().getServl= etContext().getRealPath("/"); But in 4 the getRequestContext() is deprecated and there is no more getServlet in the context. My first question was how does one get ahold of the requestContext, or what seems to have replaced it, 'WebRequest'. and once you have it can you do anything with it to get the actual path? Thanks! -Nick --------------------------------------------------------------------- To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tapestry-user-help@jakarta.apache.org