Return-Path: Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 6458 invoked from network); 30 Jan 2001 21:50:46 -0000 Received: from aquarius.dataway.ch (HELO dataway.ch) (195.216.80.38) by h31.sny.collab.net with SMTP; 30 Jan 2001 21:50:46 -0000 Received: (qmail 2457 invoked from network); 30 Jan 2001 21:50:50 -0000 X-dataway-Spamcheck: 195.216.80.139: RBL=- DUL=- RSS=- ORBS=- Received: from unknown (HELO pwr.ch) (195.216.80.139) by aquarius.dataway.ch with SMTP; 30 Jan 2001 21:50:50 -0000 Received: (qmail 14967 invoked from network); 30 Jan 2001 21:46:18 -0000 Received: from lap1.pwr.ch (HELO apache.org) (giacomo@10.20.30.112) by simba.pwr.ch with SMTP; 30 Jan 2001 21:46:18 -0000 Sender: giacomo Message-ID: <3A77360D.8BCBB67B@apache.org> Date: Tue, 30 Jan 2001 22:45:49 +0100 From: Giacomo Pati Organization: Apache Software Foundation X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: de-DE, de-CH, en MIME-Version: 1.0 To: cocoon-dev@xml.apache.org Subject: Re: [C2]Getting absolute path of component parameter [was: Proposal: URL Protocols] References: <3A76E397.6D4FE246@apache.org> <20010130175941.1dd8d664.conny@smb-tec.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Conny Krappatsch wrote: > > Would the proposed solve the problem I'm currently having? > > I wrote a Component which provides access to a CMS. The CMS needs to be > initalized with a file name. Configuration in cocoon.xconf currently > looks like this: > > class="org.infozone.ui.cocoon2.ProwlerComponent"> > value="/absolute/path/to/prowler.xproperties"/> > > > This works as long as the location of the properties file isn't changed. A > possibility to use a path relative to the web application would be great. > I spent some time digging through Cocoon sources to find a solution, but > without success (at least I learned a lot about C2 architecture and Avalon > :-). > > Is there a solution for my problem (can I access the context object from > the components configure method)? As a workaround for that I've used the NetUtils class. Giacomo