Hi,
I am attempting to use a custom JSP tag within a Freemarker template within
OFBiz without success.
In a JSP, the tag syntax is as follows:
<%@ taglib uri="/WEB-INF/imps.tld" prefix="imps"%>
<imps:xhtmldoctype request="<%=request%>"/>
So, I attempted the following in Freemarker:
<#assign imps=JspTaglibs["/WEB-INF/imps.tld"]>
<@imps.xhtmldoctype request=request />
However, the second line throws this error:
%{#request} Could not find an instance of
freemarker.ext.servlet.ServletContextHashModel in the data model under
either the name __FreeMarkerServlet.Application__ or Application
The problematic instruction: ---------- ==> user-directive imps.xhtmldoctype
[on line 5, column 1 in mobile.ftl]
I do not know if my tag syntax is incorrect or, There is something I need to
configure elsewhere or, if Freemarker within OFBiz supports custom JSP tags.
I did find this in controller.xml
<handler name="ftl" type="view"
class="org.ofbiz.webapp.ftl.FreeMarkerViewHandler"/>
I'm a total newie to OFBiz and Freemarker, but I'm guessing this is not the
same handler as standalone Freemarker.
Thank you.
Regards Brett S
BTW, I originally posted this question on the 25th of Feb. So, my aplogies
for posting it again. However, I have been getting emails from nabble that
state it was not accepted.
--
View this message in context:
http://n4.nabble.com/How-To-Use-JSP-Custom-Tag-Within-Freemarker-Template-Page-tp1579089p1579089.html
Sent from the OFBiz - Dev mailing list archive at Nabble.com.