[opencms-dev] Opencms & Velocity...

Ashok Hariharan ashok.hariharan at gmail.com
Fri Mar 3 13:01:59 CET 2006


Hello Dan:

I am in fact using your module :) Everything works fine, except when i try
to #parse () or #include () a file,
for some reasont it fails to include files from within the vfs....(i am able
to access other opencms objects and functions
through velocity).

any ideas/pointers...where i could have gone wrong?
thanks

Ashok



On 2/24/06, Dan Liliedahl <dliliedahl at efoundry.com> wrote:
>
> There has already been posted a module for this solution.  I posted this a
> little while back - do a search for it and you will find the code and
> module.  Works fine in the scenario you described.
>
> Cheers,
> Dan Liliedahl
>
> -----Original Message-----
> From: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org ] On Behalf Of Ashok Hariharan
> Sent: Friday, February 24, 2006 10:07 AM
> To: opencms-dev at opencms.org
> Subject: [opencms-dev] Opencms & Velocity...
>
> Hi:
>
> I am trying to use Jakarta Velocity within Opencms.  Everything seems
> to work, but I cant to seem to get #include() or #parse() from within
> a velocity script to work.....
>
> I have tried prefixing "opencms://<path>" and without the prefix...but
> Velocity still cannot seem to include files from within the VFS.
>
> Error message as below...
>
> <error message>
> Unable to find resource 'opencms://sites/default/test_include.vm'
> org.apache.velocity.exception.ResourceNotFoundException : Unable to
> find resource 'opencms://sites/default/include.vm' at
> .........
> </error message>
>
> The velocity documentation talks about setting a TEMPLATE_ROOT...but
> am not sure if that is the problem.  Has someone experienced the same
> problem?
>
> thanks
>
> Ashok
>
> --
> ++++ Ashok Hariharan ++++
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
>
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>



--
++++ Ashok Hariharan ++++
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060303/aefb270b/attachment.htm>


More information about the opencms-dev mailing list