aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Jstl error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Jstl error" Watch "Jstl error" New topic
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
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1696
    
  25

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: 61426
    
  67

What else is in WEB-INF/lib?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Frits Walraven
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1696
    
  25

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
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1696
    
  25

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: 61426
    
  67

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
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1696
    
  25

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jstl error