cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <>
Subject RE: current sitemap directory path
Date Thu, 22 Jul 2004 06:37:19 GMT
Colin Paul Adams wrote:
> But this is only a solution when a Source object is what you want.
> This is not the case for me. I need this information from 
> WITHIN a Source object, as I need to pass an absolute 
> directory path to a Berkeley DB XML API.
> I tried using context.getRealPath ( request.getSitemapPath () 
> ), but this does not give the correct answer when the sitemap 
> concerned is mount from the mount table (and thus is not 
> within the cocoon build/webapp directory.
> So how do I go about it?

Ok, then you can lookup the SourceResolver in your SourceFactory,
pass the resolver to your Source object, resolve your path
in the Source object and get the absolute path from Source object.


View raw message