I'm currently trying to get Freemarker to work with my application using Spring. No matter what I try, I keep getting a pattern that is not found. I'm not sure if the setting is configured correctly, but never finds my template. Here is my spring bean config:
<bean id="freemarkerConfig" class="org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer"> <property name="templateLoaderPath" value="/WEB-INF/freemarker/"/> </bean>
Whenever I try to call getTemplate in freemaker configuration, it always sends back a template that is not found. So if i do
configuration.getTemplate("testTemplate.ftl")
it always throws an IOException.
I'm not sure if anyone has any idea what I'm doing wrong.
Thanks for your help!
brock source share