In order to integrate JForum with my site, I'd like to be able to use some custom tags and other
JSP features in the header and footer templates.
According to the freemarker docs, it directly supports using JSP tags like so:
<#assign bean=JspTaglibs["/WEB-INF/mytaglib.tld"]>
It turns out that this causes an "Expression JspTaglibs is undefined" error. What seems to be the problem is that JForum doesn't use the "TaglibFactory" model which is needed for Freemarker to support taglibs.
Now I don't really know anything about freemarker except what I've learned today, but I'm not sure why this can't be added. Tt looks like JForum just directly uses the Freemarker library with a "SimpleHash" as the model instead of using the Freemarker
servlet. But in keeping with this system, can we also add support for the TaglibFactory model?
I'm comfortable making the changes myself, but I could use some suggestions to point me in the right direction.
Thanks!
[originally posted on jforum.net by csbook]