• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I tried my best for the solution but in vain. With my first JSTL <c:forEach> project I am getting the following error



This is web.xml



This is my servlet class



This is JSP class



I am using Tomcat 7, which has Servlet 3.0 and JSP 2.2. Also I have added jstl-1.2jar to the project build path. I have also attached my project directory snap.

PjtDir.jpg
[Thumbnail for PjtDir.jpg]
 
Saloon Keeper
Posts: 13256
292
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jay, welcome to CodeRanch!

The JSTL jar needs to be inside the WEB-INF/lib folder. When you do that and refresh your project, I think Eclipse will automatically add it to your Web App Libraries.
 
Jay Josh
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Stephan, Its working now Thanks a lot for the reply.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the jstl.jar is already in WEB-INF ,still same error is comming what does that mean??
 
Sheriff
Posts: 26771
82
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:The JSTL jar needs to be inside the WEB-INF/lib folder.



And welcome to the Ranch!
 
reply
    Bookmark Topic Watch Topic
  • New Topic