You're declaring the uri for your prefix as http://java.sun.com/jsp/jstl/core, and you have your taglib-uri in web.xml as http://java.sun.com/jstl/core

The former is for JSTL 1.1 ( jsp/jstl ) and the latter is for JSTL 1.0 (jstl), so you should change your page references.

And, like Dima pointed out, you really don't need to be cluttering up your web.xml with <taglib*/> tags...

hth,
-a

George Hester wrote:

I put all the jars in the standard 1.0 package in \WEB-INF\lib. That didn't work. So I put all the tlds in \WEB-INF. That didn't work either.

My error is this:

org.apache.jasper.JasperException: This absolute uri (http://java.sun.com/jsp/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application

And my jsp is this:

<[EMAIL PROTECTED] prefix="c" uri="http://java.sun.com/jsp/jstl/core"; %>
<!doctype html public "-//W3C//DTD HTML 4.0 Final//EN">
<html>
<head>
<title>Counter Page</title>
</head>
<body bgcolor="white">
<%-- Increment Counters --%>
<c:set var="sessionCounter" scope="session" value="${sessionCounter + 1}"/>
<c:set var="applCounter" scope="application" value="${applCounter + 1}"/>
<h1>Counter page</h1><p>
This page has been visited <b>${sessionCounter}</b> times within the current 
session<br/>
and <b>${applCounter}</b> times by all users since the application was started.</p>
</body>
</html>

In my Web.xml I have this:

 <taglib>
    <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
    <taglib-location>/WEB-INF/c.tld</taglib-location>
 </taglib>

Nothing helps.

Any suggestions?





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to