>>>>> "Joerg" == Joerg Heinicke <[EMAIL PROTECTED]> writes:

    Joerg> On 18.07.2004 16:12, Colin Paul Adams wrote:
    >> How can I determine the directory of the current sitemap, from
    >> within a Source?

    Joerg> Resolving "cocoon:/" should work in every case but is
    Joerg> probably not the best way. IIRC there is a
    Joerg> request.getSitemapURI() method.

Well, that doesn't give the correct information.

Looking at the source code for Request, there is also getRequestURI,
which returns the information, plus some more (I guess I could parse
this).
There is also getSitemapPath(), but when I tried it, it didn't work. 
The comments show why - it says since 2.2, and I am trying to test
under 2.1.5, due to a bug in CVS. But I was told to report it against
2.1, not 2.2. Oh well.
I'll use getRequestURI.
-- 
Colin Paul Adams
Preston Lancashire

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to