AnsweredAssumed Answered

Load FTL template in JAVA backed webscript

Question asked by nabil.malloul on Aug 24, 2017
Latest reply on Aug 25, 2017 by afaust


I created a template file FTL and stored it in a specific folder in Alfresco repository. inside i have a java backed webscript. I want to load the template file into my Java backed webscript to use it to create an XML file.

I use the freemarker API to load the template, i use this method to load this FTL file :


But i still getting this error: Template "contentModelTemplate.xml.ftl"

I used the FTL file PATH, and the name of the file as arguement to this method to load the template, but i still getting the same error.

Can you tell me how to fix this, and how to load ftl template file in Java?