File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes error in JSTL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "error in JSTL" Watch "error in JSTL" New topic
Author

error in JSTL

parul bajaj
Greenhorn

Joined: Apr 26, 2005
Posts: 8
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

Joined: Aug 15, 2004
Posts: 2874
Do you have the JSTL distribution binary??
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Try

instead of
parul bajaj
Greenhorn

Joined: Apr 26, 2005
Posts: 8
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

Joined: Aug 15, 2004
Posts: 2874
you can put the binary under "lib" directory inside your app directory. Like, myapp/lib/.

Have you tried to change that URI??
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error in JSTL