aspose file tools*
The moose likes JSP and the fly likes Regarding c:forEach jstl tag. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Regarding c:forEach jstl tag." Watch "Regarding c:forEach jstl tag." New topic
Author

Regarding c:forEach jstl tag.

Chidanand Chauhan
Ranch Hand

Joined: Nov 10, 2005
Posts: 77
Can anyone solves my problem. i am writting the code.

<%@ page isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String movieList[]={"aba",rakshak","homealone"};
request.setAttribute("MovieList","movieList");
%>

<table>
<c: forEach var="movie" items="${MovieList}">

<tr>
<td>${movie}</td>
</tr>
</c:forEach>

</table>


the problem shows.

org.apache.jasper.JasperException: The 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 help me.

Thanks in advance
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Which version of JSTL are you using?
Which version of Tomcat are you using?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Chidanand Chauhan
Ranch Hand

Joined: Nov 10, 2005
Posts: 77
I am using Tomcat V-5.0.28
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by Ben Souther:
Which version of JSTL are you using?
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Originally posted by Chidanand Chauhan:
I am using Tomcat V-5.0.28


Which one are you using JSTL 1.1 or JSTL 1.0?
Chidanand Chauhan
Ranch Hand

Joined: Nov 10, 2005
Posts: 77
Originally posted by Adeel Ansari:


Which one are you using JSTL 1.1 or JSTL 1.0?


i can't find the the jstl version. i am using tomcat V-5.0.28.
I am sending my tomcat release note along this.
please check the Release Note and let me know which version i am using.


Apache Tomcat Version 5.0.28
Release Notes


$Id: RELEASE-NOTES,v 1.18 2004/06/15 18:42:06 yoavs Exp $


============================
KNOWN ISSUES IN THIS RELEASE:
============================

* Tomcat 5.0 and JNI Based Applications
* Tomcat 5.0 Standard APIs Available
* Tomcat 5.0 and XML Parsers
* Web application reloading and static fields in shared libraries
* JAVAC leaking memory
* Tomcat on Linux
* Enabling SSI and CGI Support
* Security manager URLs
* Symlinking static resources
* Enabling invoker servlet
* Viewing the Tomcat Change Log
* When all else fails


-------------------------------------
Tomcat 5.0 and JNI Based Applications:
-------------------------------------

Applications that require native libraries must ensure that the libraries have
been loaded prior to use. Typically, this is done with a call like:

static {
System.loadLibrary("path-to-library-file");
}

in some class. However, the application must also ensure that the library is
not loaded more than once. If the above code were placed in a class inside
the web application (i.e. under /WEB-INF/classes or /WEB-INF/lib), and the
application were reloaded, the loadLibrary() call would be attempted a second
time.

To avoid this problem, place classes that load native libraries outside of the
web application, and ensure that the loadLibrary() call is executed only once
during the lifetime of a particular JVM.


----------------------------------
Tomcat 5.0 Standard APIs Available:
----------------------------------

A standard installation of Tomcat 5 makes all of the following APIs available
for use by web applications (by placing them in "common/lib" or "shared/lib"):
* ant.jar (Apache Ant 1.6 or later)
* commons-collections*.jar (Commons Collections 2.1 or later)
* commons-dbcp.jar (Commons DBCP 1.1 or later)
* commons-el.jar (Commons Expression Language 1.0)
* commons-logging-api.jar (Commons Logging API 1.0.3 or later)
* commons-pool.jar (Commons Pool 1.1 or later)
* jasper-compiler.jar (Jasper 2 Compiler)
* jasper-runtime.jar (Jasper 2 Runtime)
* jsp-api.jar (JSP 2.0 API)
* commons-el.jar (JSP 2.0 Expression Language)
* naming-common.jar (JNDI Context implementation)
* naming-factory.jar (JNDI object factories for J2EE ENC support)
* naming-resources.jar (JNDI DirContext implementations)
* servlet-api.jar (Servlet 2.4 API)

You can make additional APIs available to all of your web applications by
putting unpacked classes into a "classes" directory (not created by default),
or by placing them in JAR files in the "lib" directory.

Tomcat 5.0 also makes Xerces 2 and the Commons Logging API (release 1.0.3)
available to web applications.

Please note that the JMX API is available to applications as well. The jmx.jar
file used to be located in the common/lib directory, but was moved to the bin
directory as part of the Tomcat 5.0.20 release. The jmx.jar is in Tomcat's
bootstrap classpath (included via the Class Path line in bootstrap.jar's manifest).
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Please follow the links given.
Chidanand Chauhan
Ranch Hand

Joined: Nov 10, 2005
Posts: 77
Originally posted by Adeel Ansari:
Please follow the links given.


i havent get any link please send me the link.The time is running.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by Adeel Ansari:


Which one are you using JSTL 1.1 or JSTL 1.0?


I think he meant these links.
If you're using Tomcat 5x, you would want to download the jars for JSTL1.1
Chidanand Chauhan
Ranch Hand

Joined: Nov 10, 2005
Posts: 77
Originally posted by Ben Souther:


I think he meant these links.
If you're using Tomcat 5x, you would want to download the jars for JSTL1.1


Could you please send me the Url path for downloading of JSTL v1.1
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

I just did.

Here is is again:
http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Actually, finding the exact page where you download the libraries is not all that easy.
I went around in a few circles myself just now.
http://jakarta.apache.org/site/downloads/downloads_taglibs-standard.cgi
[ January 06, 2006: Message edited by: Ben Souther ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61010
    
  65

This information is also in the JSP FAQ.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

FAQ was down this morning.
Chidanand Chauhan
Ranch Hand

Joined: Nov 10, 2005
Posts: 77
Hi
I had downloaded the jstl V-1.1 from the respective site.
Could you please tell me where to store this file and how would i access this jstl.
Pl let me know As soon as possible.

Thanks
Chidanand Chauhan
Chidanand Chauhan
Ranch Hand

Joined: Nov 10, 2005
Posts: 77
can anybody solve my problem.
Please help me out.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Put jstl.jar and standard.jar in your application's WEB-INF/lib directory.

Also, please read:
http://faq.javaranch.com/view?PatienceIsAVirtue
Chidanand Chauhan
Ranch Hand

Joined: Nov 10, 2005
Posts: 77
Originally posted by Ben Souther:
Put jstl.jar and standard.jar in your application's WEB-INF/lib directory.

Also, please read:
http://faq.javaranch.com/view?PatienceIsAVirtue


Now its done thanks to all guys who put efforts to solve my problem.

Thanks,
Chidanand Chauhan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regarding c:forEach jstl tag.