You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Claus Straube <cl...@xdoo.de> on 2005/02/27 11:04:57 UTC
Source Resolving Problem
Hello,
I try to get a file that Ive uploaded before (Ive copied the stream, so
its definitely in my upload folder). How can I reach the source now via a
java class? I wanted to get the correct path with that code:
public String resolvePath(String path) {
try {
Source src = this.resolver.resolveURI(path);
path = SourceUtil.getPath(src.getURI());
} catch (Exception ex) {
System.out.println(ex);
}
return path;
}
but it doesnt work. What I would expect is, that this method will return a
path relative to my sitemap if I would give something like context:// to
it. But itll return the same string, that I gave to it.
Are there API Docs for the package org.apache.excalibur.source? I cant
find anything
Is there a description how to resolve sources on the net? I
found the one in the dev guide, but that is not enough for me to understand.
Best regards - Claus
__________________________________________
Claus Straube
Francéstrasse 31
80997 München
+49 (089) 14 16 682