Tomcat 5.0 JSTL 1.1 error when trying to loop over params

Posted on 2004-04-13
Last Modified: 2013-11-24
I'm running Tomcat 5.0 using jstl 1.1 and have examples from oreilly under my webapps folder that don't have any problems with the following code.  Also, what is the best way to handle complex forms in JSP using JSTL?  Could someone please help.
When I attempt to do something like this:

<%@ taglib prefix="c" uri="" %>

<c:forEach items="${param}" var="current">
      <c:out value="${current.key}" />
      <c:out value="${current.value}" />

I get this error:


root cause

Question by:trobutta
  • 3
  • 2
LVL 27

Expert Comment

ID: 10823439
Your code works for me.
I could not reproduce the error. Which version of java are you using ?
Are you sure that you have the 1.1 jars ?

Author Comment

ID: 10827792
currently using java 1.4.2

my WEB-INF/lib/ directory contains
  jstl.jar and standard.jar that I got from the

webapps\jsp-examples\WEB-INF\lib directory that installed with tomcat

I just realized the code I posted doesn't run in their examples folder either.
Should I try to up date the jar files?

Author Comment

ID: 10827903
I got the freshest files from jakarta for jstl 1.1 and it still won't run for me.
The code does run under another folder that has an outdated jstl implementation..
but other things I'm doing don't run under that jstl implementation.
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

LVL 13

Expert Comment

ID: 10828528
are you getting the same error with the new version of jstl?
LVL 27

Accepted Solution

rrz earned 125 total points
ID: 10828835
Do you have the 2.4 header on your context's web.xml file ?  
LVL 27

Expert Comment

ID: 10918388

Please show us line 180.   Look in Tomcat's work folder.   rrz

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
countClumps  challenge 10 90
Connect to IP Camera using Java 4 108
Convert BufferedReader to File 1 63
sumHeights  challenge 17 61
I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now