<%@ 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
Just go for New->XML file and name the file as yourname. tld thats all !
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.
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With