Re: Getting Context Path in Usecase

sac sha <[email protected]>
Newsgroups gmane.comp.cms.lenya.user
Message-ID <[email protected]>
Hi Andreas

Thanks for reply.

Can you please tell me what is "resolver" here and how can I get that?

Regards
Sac

On Wed, Mar 24, 2010 at 6:40 PM, Andreas Hartmann <[email protected]> wrote:
> Am 23.03.10 11:12, schrieb sac sha:
>>
>> I have a custom usecase in lenya global modules. I want to access
>> context path in prepareView() method of that so that I can locate an
>> xml file starting from context root.
>
> Did you try to use the fallback:/ protocol?
>
> myXmlSource =
> resolver.resolveURI("fallback://lenya/modules/mymodule/resources/foo.xml");
>
> Best regards,
> Andreas
>
>
> --
> Andreas Hartmann, CTO
> BeCompany GmbH
> http://www.becompany.ch
> Tel.: +41 (0) 43 818 57 01
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.