Question

I'm getting the following error when trying to run a JSP. I'm using Tomcat 6.0.18, and I'd like to use the latest version of JSTL.

What version of JSTL should I use, and which URL goes with which version of JSTL?

I'm getting this error

"According to TLD or attribute directive in tag file, attribute key does not accept any expressions"

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

I'll just say I had this working, but I want to switch the JSTL jar file that has the TLD files in the jar file. (instead of having to deploy them somewhere in the web application and define the references in web.xml).

Was it helpful?

Solution

Go with

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

More on this topic here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top