Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 8168 invoked from network); 10 Dec 2003 09:22:39 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 10 Dec 2003 09:22:39 -0000 Received: (qmail 75227 invoked by uid 500); 10 Dec 2003 09:22:07 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 75079 invoked by uid 500); 10 Dec 2003 09:22:06 -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 75047 invoked from network); 10 Dec 2003 09:22:06 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by daedalus.apache.org with SMTP; 10 Dec 2003 09:22:06 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AU0Xy-0005to-00 for ; Wed, 10 Dec 2003 10:22:18 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: users@cocoon.apache.org Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AU0Xx-0005tg-00 for ; Wed, 10 Dec 2003 10:22:17 +0100 Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AU0Xx-0004Ms-00 for ; Wed, 10 Dec 2003 10:22:17 +0100 From: Andreas Hartmann Subject: [Flowscript] Obtaining servlet context directory Date: Wed, 10 Dec 2003 10:24:20 +0100 Lines: 26 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6a) Gecko/20031030 X-Accept-Language: en-us, en Sender: news X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Cocoon users, I'm looking for an easy way to obtain the directory of the servlet context in a flowscript. Is there any reason why context.getRealPath() in FOM_Cocoon is not (yet?) implemented? By now I'm doing var sourceResolver = cocoon.getComponent( Packages.org.apache.excalibur.source.SourceResolver.ROLE); var source = sourceResolver.resolveURI("context:///"); var sourceFile = Packages.org.apache.excalibur.source.SourceUtil.getFile(source); var contextPath = sourceFile.getAbsolutePath(); sourceResolver.release(source); cocoon.releaseComponent(sourceResolver); Is there something shorter and more elegant? Thanks in advance, -- Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org