You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Andreas Hartmann <an...@apache.org> on 2003/07/08 10:37:04 UTC

Resolving sources relative to webapp context

Hi Cocoon users,

I'm instantiating a custom component inside an action.
In this component, I want to resolve a path to a source:

resolver = (SourceResolver)
        manager.lookup(SourceResolver.ROLE);
source = resolver.resolveURI(configurationDirectoryPath);

This way, the source is resolved relatively to the
sitemap. Is it possible to get the source relative to
the webapp context?

The configurationDirectoryPath shall be defined in
cocoon.xconf, like e.g. in the EntityResolver.
I looked into the excalibur.DefaultEntityResolver class,
but didn't find a hint how the implementation is different.

Thanks in advance!
Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Resolving sources relative to webapp context

Posted by Andreas Hartmann <an...@apache.org>.
Andreas Hartmann wrote:

> Is it possible to get the source relative to
> the webapp context?

I found out that I can use the context:// protocol
in cocoon.xconf. This solves my problem.

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org