I'm having a problem getting the errors in my freemarker scripts. I'm sure I just have to expose them in some way. Do I use an interceptor, or is there a feature I just need to turn on? What is the best way to do it? Thanks!
I'm having a problem getting the errors in my freemarker scripts. I'm sure I just have to expose them in some way. Do I use an interceptor, or is there a feature I just need to turn on? What is the best way to do it? Thanks!
are you talking in ftl view?
try
<attempt>
</attempt> to catch your ftl exception ...
Oh, I should have been more specific. I meant form errors. I found out the solution by looking at other people's example code after lots of searching...
They need to put this in the manual, as this is pretty much required stuff.Code:<bean id="viewResolver" class="org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver"> <property name="cache" value="true"/> <property name="prefix" value=""/> <property name="suffix" value=".ftl"/> <property name="exposeSpringMacroHelpers" value="true"/> </bean>