This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSTL tag library import problem

 
Sverre Moe
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Previously I have used
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> for the JSTL tag library while using IBM RAD7. Now when I tried it in a web project in Eclipse 3.3 I get the error: "Cannot find the tag library descriptor for http://java.sun.com/jsp/jstl/core"

There can't be any Internet connection problem because I also use a Spring tag which URI(http://www.springframework.org/tags) does not produce such an error.
[ July 30, 2007: Message edited by: Sverre Moe ]
 
Michael Ku
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What release of JSP is the Eclipse project using? Tag libs in JSP 2.0 can be either under WEB-INF or in a jar file under lib. If you can locate the TLD you can check to see what the uri value should be.
 
Sverre Moe
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Michael Ku:
What release of JSP is the Eclipse project using? Tag libs in JSP 2.0 can be either under WEB-INF or in a jar file under lib. If you can locate the TLD you can check to see what the uri value should be.


I don't know, its Eclipse 3.3. The project was created with Dynamic Web Module 2.4 and Java 1.5. but I have also tried with 2.5 with no effect.

Anyway. This problem does not occur with Eclipse 3.2
[ July 30, 2007: Message edited by: Sverre Moe ]
 
Michael Ku
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could always download the JSTL yourself and place it into you web app following the rules for where to place TLDs. The uri should not change since it is the standard name for the JSTL uri
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic