Hi Andreas Excalibur SourceResolver did the job.
Great thanks. Regards Sac On Thu, Apr 1, 2010 at 3:37 PM, Andreas Hartmann <[email protected]> wrote: > Hi Sac, > > Am 01.04.10 11:59, schrieb sac sha: >> >> Can you please tell me what is "resolver" here and how can I get that? > > it's the source resolver from Excalibur. I guess you'll easily find some > usage examples if you search the code for "SourceResolver" and/or > "resolveURI". > > Good luck and best regards, > > -- Andreas > > >> >> 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] >>> >>> > > > -- > 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]
