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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
