Hi Bert,

I think we 'solved' at the beginning the issue Greg wrote with such a hack.
Probably this will help:

Copy the tld file into the WEB-INF folder itself and add into the web.xml file such an entry of the lib you wan to use:
<jsp-config>
    <taglib>
        <taglib-uri>cms-taglib</taglib-uri>
        <taglib-location>cms-taglib.tld</taglib-location>
    </taglib>
  </jsp-config>
</web-app>


Regards,
Christian


On Jul 31, 2009, at 15:18 , Grégory Joseph wrote:


a two-fold response:
1) there is most likely a more freemarker-ish approach to do whatever it is you're trying to do ;) Which tag do you need to use? to do what ? 2) i don't remember the specifics by heart, but there are some quirks with taglib uris sometimes - I knew Chris Miner tackled that quite some time ago - have a look at MAGNOLIA-1401 [1], there's even an example where he seems to be succesfully using the jstl/fmt taglib !

Regarding the page you're mentioning - i think it's quite outdated; we don't use jstl anywhere in Magnolia anymore, afaik.

Cheers,

-g

[1] http://jira.magnolia-cms.com/browse/MAGNOLIA-1401


----- Original Message -----
From: Bert Leunis
[mailto:[email protected]]
To: Magnolia User-List
[mailto:[email protected]]
Sent: Fri, 31 Jul 2009 15:00:25
+0200
Subject: [magnolia-user]  jstl taglib not loaded using freemarker


Hello,

Inspired by this page:
http://wiki.magnolia-cms.com/display/WIKI/I18n+Developer+Information

I try to use the jstl/fmt taglib in freemarker, but the taglib is not
recognized or loaded.

To load the taglib I use this line:
[#assign fmt=JspTaglibs["http://java.sun.com/jstl/fmt";]]

I placed the jstl-1.1.2.jar in WEB-INF/lib so freemarker can load it.
The error I get is:

Error on line 1, column 1 in tcn/panels/visuals/ polaroid_container.ftl
JspTaglibs["http://java.sun.com/jstl/fmt";] is undefined.
It cannot be assigned to fmt
The problematic instruction:
----------
==> assignment: fmt=JspTaglibs["http://java.sun.com/jstl/fmt";] [on line 1,
column 1 in tcn/panels/visuals/polaroid_container.ftl]
----------

Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Error on line 1, column 1 in
tcn/panels/visuals/polaroid_container.ftl
JspTaglibs["http://java.sun.com/jstl/fmt";] is undefined.
It cannot be assigned to fmt

What can I do to work with this taglib?

Regards, Bert


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to