cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylv...@apache.org>
Subject Re: how do you get the directory where the current flow is running?
Date Sun, 09 Oct 2005 07:40:59 GMT
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(".");

Sylvain

-- 
Sylvain Wallez                        Anyware Technologies
http://people.apache.org/~sylvain     http://www.anyware-tech.com
Apache Software Foundation Member     Research & Technology Director


Mime
View raw message