JSTL on Tomcat 5.0

T

tim

I am trying to run some basic JSTP on a Tomcat 5.0 environment. I have
taken a sample jsp application to ensure that I have everything set up
properly before I proceed.
I am getting errors, the jsp is running but I am not getting the
correct output.

When I run this program:

<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<html>
<head>
<title>Count to 10 Example (using JSTL)</title>
</head>

<body>
<c:forEach var="i" begin="1" end="10" step="1">
<c:eek:ut value="${i}" />
<br />
</c:forEach>
</body>
</html>


I get:

${i}
${i}
${i}
${i}
${i}
${i}
${i}
${i}
${i}
${i}

I understand that there is a disconnect between the versions of the
various libraries but I am having trouble identifying what needs
changing.

What exactly needs to be in web.xml? The taglib I downloaded is
jakarta-taglibs-standard-1.1.2.zip.

Any help would be appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top