Gianugo Rabellino wrote:
On Jul 6, 2004, at 11:35 AM, Sylvain Wallez wrote:
I changed that to
private String getSitemapPath() throws Exception {
return ObjectModelHelper.getRequest(
EnvironmentHelper.getCurrentEnvironment().getObjectModel()).getSitemap UR I();
}
Aargh! You should absolutely avoid to use the very-internal-and-private EnvironmentHelper class! ContextHelper is your friend ;-)
Good to know, even though this very class is very-internal-and-private as well. :-)
Forgot to say: although maybe not well-known, ContextHelper is part of Cocoon's public API and can therefore be used without fearing compatibility issues with newer versions. This isn't the case with EnvironmentHelper: it's new in HEAD, and can change without notice!
Sylvain
-- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
