cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: how do you get the directory where the current flow is running?
Date Sun, 09 Oct 2005 19:03:23 GMT
Sylvain Wallez wrote:
> Stefano Mazzocchi wrote:
> 
>> I'm in a flow.js and I want to know where it is located on disk.
> 

> You can have the current sitemap's location using 
> cocoon.getComponent(SourceResolver.ROLE).resolveURI(".");

D'oh! I was doing 
cocoon.getComponent(SourceResolver.ROLE).resolveURI("context:/.");

Sometimes it's even too easy :-)

Thx.

-- 
Stefano.


Mime
View raw message