Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to resolve : Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core" [duplicate]

Tags:

java

jsp

jstl

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ page import="com.library.controller.*"%> <%@ page import="com.library.dao.*" %> <%@ page import="java.util.*" %> <%@ page import="java.lang.*" %> <%@ page import="java.util.Date" %> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Return Page</title> </head> <body bgcolor="#aabcde"> <div align="right"><a href="Login.jsp">Logout</a></div> <table align="center" border="2" cellspacing="3" cellpadding="3"> <tr><th>BookID</th><th>BookName</th><th>Issuedate</th><th>returndate</th></tr> <c:forEach var="element" items="${list}">     <tr>         <td>${element.getBookid}</td><td>${element.getBookname()}</td>           <td>${element.getIssuedate()}</td><td>${element.getReturndate()}</td>     </tr> </c:forEach> 

The Eclipse IDE is showing red underline and when I focus it the tag is : can not find the library descriptor for http://java.sun.com/jsp/jstl/core

like image 844
Samarth2011 Avatar asked May 13 '11 06:05

Samarth2011


People also ask

How install TLD file in eclipse?

Just go for New->XML file and name the file as yourname. tld thats all !

Where do I put JSTL jar files in eclipse?

Copy jstl. jar and standard. jar files to the lib folder of the project directory and add all jar files to the build path of the project.


1 Answers

I know this thread is a year old now but having experienced the same problem I managed to solve the problem by setting a target server for my project.

i.e. right-click on your project and select 'Properties' -> 'Targeted Runtimes' and select the server you going to run your web app on (Tomcat 6 or 7).

like image 155
willix Avatar answered Oct 20 '22 03:10

willix