• Post Reply Bookmark Topic Watch Topic
  • New Topic

taglib uri error  RSS feed

 
Ramakrishna Konanki
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<%-- use the 'taglib' directive to make the JSTL 1.0 core tags available; use the uri
"http://java.sun.com/jsp/jstl/core" for JSTL 1.1 --%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>

<%-- use the 'jsp:useBean' standard action to create the Date object; the object is set
as an attribute in page scope
--%>
<jsp:useBean id="date" class="java.util.Date" />

<html>
<head><title>First JSP</title></head>
<body>
<h2>Here is today's date</h2>

<cut value="${date}" />

</body>
</html>


i am executing this jsp page in eclipse.......geting error at <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
i.e uri not found....so how to get this...
 
Nipun Bahr
Ranch Hand
Posts: 55
Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I feel you are missing tld file. Put the c.tld file in your application lib folder then try access it.
 
Ankita Basu
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Put the jstl.jar and standard.jar files in the lib directory under Web-INF
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!