Reputation: 12999
I am currently upgrading our web application from Webwork to Struts2. I run to problem with freemarker that I am unable to resolve.
In FTL file I have:
<#assign c=JspTaglibs["http://java.sun.com/jstl/core"]>
When rendering the page I get:
JspTaglibs["http://java.sun.com/jstl/core"] is undefined.
I use other taglibs (e.g. spring and struts), I have them defined in web.xml
and it works fine.
How can I make standard libraries work?
Upvotes: 0
Views: 649
Reputation: 12999
Turns out it was the simplest thing. /WEB-INF/lib
directory was not fully populated and it caused this error. I did full rebuild of the project and it works like magic now.
Upvotes: 0
Reputation: 1108712
This URI is deprecated over a decade ago. Use http://java.sun.com/jsp/jstl/core
. On the other hand, you also need to ensure that you've JSTL installed properly (by just placing/having the JAR file(s) in the webapp's runtime classpath).
Upvotes: 2