| Author |
Jstl error
|
Nabila Mohammad
Ranch Hand
Joined: Nov 05, 2007
Posts: 661
|
|
I am trying to run a simple test for <c:forEach>
I am getting the following error
Not sure what that means...
I have the jstl.jar and standard.jar in the WEB-INF/lib folder.
My myjsp.jsp is
And ForEach.java is
|
The future belongs to those who believe in the beauty of their dreams.Dream BIG!
|
 |
Frits Walraven
Rancher
Joined: Apr 07, 2010
Posts: 1066
|
|
two questions:
- How does your web.xml look like?
- Are you sure you have downloaded the jstl 1.1 version of the jars?
Regards,
Frits
|
 |
Nabila Mohammad
Ranch Hand
Joined: Nov 05, 2007
Posts: 661
|
|
My Web.xml file is
Yes , i am sure i downloaded the jstl.jar. My cout example worked fine.
|
 |
Cosmin Nicolae Vacaroiu
Ranch Hand
Joined: Feb 10, 2011
Posts: 52
|
|
|
What version of Tomcat do you use ?
|
SCJP 6 (93%), SQL Expert 11g (95%), SCWCD 6 (84%), OCE-EJBD 6 (98%), OCE-JPAD 6 (93%)
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56545
|
|
|
What else is in WEB-INF/lib?
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Frits Walraven
Rancher
Joined: Apr 07, 2010
Posts: 1066
|
|
the code works fine on my tomcat 5.5 server.
Did you also download the standard.jar ?
|
 |
Nabila Mohammad
Ranch Hand
Joined: Nov 05, 2007
Posts: 661
|
|
The exact file names are :
jstl-api-1.2
jstl-impl-1.2
Don't have anything else in WEB-INF/lib beside this.
|
 |
Frits Walraven
Rancher
Joined: Apr 07, 2010
Posts: 1066
|
|
|
you need to download jstl version 1.1 (jstl.jar and standard.jar) for Servlet 2.4 (defined in your web.xml)
|
 |
Nabila Mohammad
Ranch Hand
Joined: Nov 05, 2007
Posts: 661
|
|
|
Any idea which files I am supposed to download from this link?
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56545
|
|
|
Download JSTL 1.1 from here.
|
 |
Nabila Mohammad
Ranch Hand
Joined: Nov 05, 2007
Posts: 661
|
|
I had tried that earlier.
I am getting "Oops! This link appears to be broken."
|
 |
Frits Walraven
Rancher
Joined: Apr 07, 2010
Posts: 1066
|
|
hmm I see, that is strange....
just get them from here standard.jar and jstl.jar
Regards,
Frits
|
 |
Nabila Mohammad
Ranch Hand
Joined: Nov 05, 2007
Posts: 661
|
|
Thanks a ton Frits, that worked
|
 |
 |
|
|
subject: Jstl error
|
|
|