-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kris,

On 5/7/2010 11:12 AM, Kris Schneider wrote:
> On Fri, May 7, 2010 at 10:39 AM, Christopher Schultz
> <ch...@christopherschultz.net> wrote:
>>
>> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
> 
> The correct core taglib uri for JSTL 1.2 is: http://java.sun.com/jsp/jstl/core

Thanks a /ton/: that was the whole problem.

> Also make sure you're using a Servlet 2.5 web.xml.

Yep, my web.xml says:

<web-app xmlns="http://java.sun.com/xml/ns/javaee";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";

It just looks like I had the wrong tablib URI. Inspecting the tag
library JAR files, I can see that these two URIs are valid:

JSTL 1.0: http://java.sun.com/jstl/core
JSTL 1.2: http://java.sun.com/jsp/jstl/core

Apparently, the 1.0 version doesn't allow EL expressions (and presumably
must operate directly on a named page/request attribute).

Switching to the 1.2 tag library URI did the trick.

Thanks a lot!

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvkr8kACgkQ9CaO5/Lv0PB6KwCgp4Li0J0khXVQiD88+EDkE1qp
6fIAoIyU+3dkKqLo+kHOrDIPRlOKop0Y
=HPBr
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to