JspTagLibs - no error but tag is being ignored
doahh <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I am trying to integrate some 3rd party taglibs into a Freemarker template
for JForum. I have added the following code to pull in the JspTaglibs
directive:
context.put(FreemarkerServlet.KEY_JSP_TAGLIBS, new
TaglibFactory(this.getServletContext()));
DefaultObjectWrapper wrapper = new DefaultObjectWrapper();
context.put(FreemarkerServlet.KEY_APPLICATION, new
ServletContextHashModel(this, wrapper));
context.put(FreemarkerServlet.KEY_REQUEST, new HttpRequestHashModel(req,
res, wrapper));
This prevents the error saying it could not process the JspTagLibs directive
but my tags:
<authz:authorize ifAllGranted="General">
...
</authz:authorize>
is being ignored. I have the same problem with JSTL tags as well. I only
have this problem with Freemarker. If I am using a JSP everything works OK.
I have tried adding the following to my web.xml:
<servlet>
<servlet-name>JspSupportServlet</servlet-name>
<servlet-class>org.apache.struts2.views.JspSupportServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<listener>
<listener-class>freemarker.ext.jsp.EventForwarding</listener-class>
</listener>
If anyone can give me a hint as to where I am going wrong I would be
grateful.
--
View this message in context: http://www.nabble.com/JspTagLibs---no-error--but-tag-is-being-ignored-tp17578374p17578374.html
Sent from the freemarker-user mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/