Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error in JSTL

 
parul bajaj
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sir
i am new to JSTL and i am writing the code :

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>


<html>
<head><title>JAI SHRI RAM</title></head>
<body>
<c:forEach var="f" begin="1" end="10">
abc
</c:forEach>

</body>
</html>

but the following code is giving the error :

org.apache.jasper.JasperException: This absolute uri (http://java.sun.com/jsp/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application

please tell me that what changes should i do . i am using tomcat 4.1

thanks in advance
parul
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have the JSTL distribution binary??
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try

instead of
 
parul bajaj
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sir i have tomcat 4.1.31 and also have JSTL binary but it is not running well.when i am writing the code for startdard tags the it is giving up the error . please tell me that where to put up the files ..
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can put the binary under "lib" directory inside your app directory. Like, myapp/lib/.

Have you tried to change that URI??
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic