I have a Java program, to call a velocity template from dotcms. I need to know where to place the vm file and how to locate in Java. I am using this link.
http://www.javaworld.com/article/2075966/core-java/start-up-the-velocity-template-engine.html
I have a Java program, to call a velocity template from dotcms. I need to know where to place the vm file and how to locate in Java. I am using this link.
http://www.javaworld.com/article/2075966/core-java/start-up-the-velocity-template-engine.html
I found out the solution. We can place it any where inside web-inf folder.
The link was helpful :
http://www.javaworld.com/article/2075966/core-java/start-up-the-velocity-template-engine.html
and path can be, path = "/xxx/xxx/xxx/xxx/xxx.vm";