[1666134 views]

[]

Odi's astoundingly incomplete notes

New entries | Code

JSTL 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 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
The taglib definition in your JSP should be:


posted on 2005-08-16 17:23 UTC in Code | 0 comments | permalink