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]> ----------------------------------------------------------------
