Upgrade from JSTL 1.0 -> 1.2. Core is now broken?
843840Mar 19 2008 — edited Mar 19 2008I had my web working properly with the jstl1.0 and standard.jar. But I needed JSTL functions and wanted to consolidate my 2 jars into one. And anyway, I am using Java 1.6 and Tomcat 6, it was simply time for an upgrade!
So I downloaded jstl1.2.jar, got rid of the old ones, and changed my 'taglib' declarations accordingly:
From:
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
To:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
And now my pages are all broken, JSTL seems unable to deal with variables of any type. If I do the following:
<c:set var="myVar" value="this is a test"/>
<c:out value="${myVar}"/>
The output is '${myVar}' instead of 'this is a test'. I also have the language in a variable. Its value is either 'eng' or 'spa'. But since it is no longer being set properly (it is now set to '$lang' instead of 'eng' or 'spa') the resource bundle isn't being found and all the strings in ApplicationResources appear as question marks.
Has the '$' syntax changed or something? What am I missing?
Thanks,
Bob