cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <giac...@apache.org>
Subject Re: [C2]Getting absolute path of component parameter [was: Proposal: URL Protocols]
Date Tue, 30 Jan 2001 21:45:49 GMT
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:
> 
> <component role="org.infozone.prowler.Prowler"
>            class="org.infozone.ui.cocoon2.ProwlerComponent">
>     <parameter name="properties"
>                value="/absolute/path/to/prowler.xproperties"/>
> </component>
> 
> 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

Mime
View raw message