Odi's astoundingly incomplete notes
New entries | CodeJSTL adventures
Using JSTL in a simple Servlet container like Tomcat can be trickier than you might think. You do not only have to find the right
Jar file that contains the JSTL. You also have to get the taglib
definition in your JSP right.
There are two versions of JSTL: 1.0 and 1.1. What they don't tell you: you somehow get both versions in the same JAR file when you use JSTL 1.1! They only differ in the taglib definition line in your JSP. You will notice this if you use
You can get the JAR File from
There are two versions of JSTL: 1.0 and 1.1. What they don't tell you: you somehow get both versions in the same JAR file when you use JSTL 1.1! They only differ in the taglib definition line in your JSP. You will notice this if you use
c:out
with an expression as the value. This is not allowed in 1.0
but it is valid in 1.1.You can get the JAR File from
- J2EE 1.4: lib/appserv-jstl.jar
- Jakarta Taglibs
- for 1.0:
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
- for 1.1:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
Add comment