• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Jay Josh
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • 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]
 
Stephan van Hulst
Bartender
Posts: 6654
90
  • Likes 1
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Hi Stephan, Its working now Thanks a lot for the reply.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!