newbie Jakarta JSTL not working.
843836Dec 5 2003 — edited Dec 5 2003Hi all,
I think this is the right place for asking questions on Jakarta JSTL Standard 1.0 tag libraries. I downloaded this file from Jakarta site - jakarta-taglibs-20030908.zip. Deployed the standard-doc.war in Tomcat 4.1.27. Run the demo standard-examples/elsupport/Out.jsp -General-Purpose Tags Examples - and it is giving the error message in browser window.
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
Is it necessary to add the tld declaration in web.xml ?.
Then I added the tld declaration in web.xml
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
JSP page refers to it as
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
restarted Tomcat and it gives the same error message.
What is wrong. I looked at the c.tld. It have the following uri at the top
<uri>http://java.sun.com/jstl/core</uri>
So I changed the uri in web.xml and JSP to this.
It still gives the error message.
This absolute uri (http://java.sun.com/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application
On looking at the WEB-INF directory I found that there is one c-rt.tld. Do I have to add this in web.xml ?.
Why the sample application not containing the taglib declaration in web.xml ?
rgds
Antony Paul