Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 92334 invoked from network); 21 May 2004 08:51:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 21 May 2004 08:51:27 -0000 Received: (qmail 76289 invoked by uid 500); 21 May 2004 08:51:48 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 76222 invoked by uid 500); 21 May 2004 08:51:48 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 76192 invoked by uid 98); 21 May 2004 08:51:48 -0000 Received: from ap-cocoon-users@m.gmane.org by hermes.apache.org by uid 82 with qmail-scanner-1.20 (clamuko: 0.70. Clear:RC:0(80.91.224.249):. Processed in 0.13044 secs); 21 May 2004 08:51:48 -0000 X-Qmail-Scanner-Mail-From: ap-cocoon-users@m.gmane.org via hermes.apache.org X-Qmail-Scanner: 1.20 (Clear:RC:0(80.91.224.249):. Processed in 0.13044 secs) Received: from unknown (HELO main.gmane.org) (80.91.224.249) by hermes.apache.org with SMTP; 21 May 2004 08:51:47 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BR5k2-0002wd-00 for ; Fri, 21 May 2004 10:50:58 +0200 Received: from gate.wyona.com ([195.226.6.75]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 May 2004 10:50:58 +0200 Received: from andreas by gate.wyona.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 May 2004 10:50:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: users@cocoon.apache.org From: Andreas Hartmann Subject: Re: [Flowscript] Obtaining servlet context directory Date: Fri, 21 May 2004 10:52:57 +0200 Lines: 17 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: gate.wyona.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040514 X-Accept-Language: en-us, en In-Reply-To: Sender: news X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N David Leangen wrote: > Is anybody able to tell me how to get the context path from flowscript? > > I noticed some threads on the subject, but wasn't able to find any > answers... > > For example: http://marc.theaimsgroup.com/?t=107104826800001&r=1&w=2 > > I'd like to be able to access a file from within my webapp, but I keep > getting a "FileNotFoundException" because I'm not able to get the context > from within flowscript. I think you could obtain a SourceResolver and resolve the URI "context:///". -- Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org