Hi ..
I am new to JSTL.I am using Tomcat 4.1.24 and Java 1.4
I have copied jstl.jar and standard.jar(includig dependancy jar files) into WEB-INF\lib folder.
I've placed all the *.tld file under WEB-INF\taglib folder
this is the web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
<taglib>
<taglib-uri>
http://java.sun.com/jstl/fmt</taglib-uri>
<taglib-location>/WEB-INF/taglib/fmt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>
http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/taglib/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>
http://java.sun.com/jstl/sql</taglib-uri>
<taglib-location>/WEB-INF/taglib/sql.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>
http://java.sun.com/jstl/x</taglib-uri>
<taglib-location>/WEB-INF/taglib/x.tld</taglib-location>
</taglib>
<display-name>Hello World!</display-name>
</web-app>
JSP is my JSP : jstlcore.jsp
<%@ taglib prefix="c" uri="\WEB-INF\taglib\c.tld" %>
<html>
<head>
<title>Simple Example</title>
</head>
<body>
<c:set var="browser" value="${header['User-Agent']}"/>
<c

ut value="${browser}"/>
</body>
</html>
When I run this jstlcore.jsp in browser I got the following error.
org.apache.jasper.JasperException: XML parsing error on file \WEB-INF\taglib\c.tld: (line 3, col 8): Document is invalid: no grammar found.
at org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:189)
at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:243)
at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:183)
I tried changing the URI in jsp to
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
I got the different error
org.apache.jasper.JasperException: This absolute uri (
http://java.sun.com/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:105)
please some one help me to solve this..