[opencms-dev] Opencms & Velocity...

Dan Liliedahl dliliedahl at efoundry.com
Fri Feb 24 18:56:30 CET 2006


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




More information about the opencms-dev mailing list