AnsweredAssumed Answered

JSP custom taglib in Freemarker templates on Surf Platform

Question asked by dudeman on Jun 9, 2009
I'm building a website based on the Alfresco Surf platform, and I need to be able to use a custom JSP taglib in my freemarker templates.  I've tried the instructions for using FreeMarker with servlets ( – I've added the FreemarkerServlet definition and mapping to web.xml, then I try to include the custom taglib in my ftl template like so:

<#assign jwr=JspTaglibs["/WEB-INF/tld/mycustomtaglib.tld"]>

But I get this error:

Expression JspTaglibs is undefined on line 1, column 14 in my_template.ftl.

I'm assuming this is because templates in a Surf website do not use the FreemarkerServlet.  Does anyone know of a way to make this work?

If this is not possible, what are my other options?  Do I have to use JSPs for my templates?  I would prefer to use freemarker templates if possible.

BTW, I am using Labs 3.2 Preview #2