RE: Broken URL's
Richard Eggert <reggert <at> proteus-technologies.com>
2008-05-12 05:14:58 GMT
You need to add something like this to your web.xml file:
<jsp-config>
<taglib>
<taglib-uri>http://shale.apache.org/clay</taglib-uri>
<taglib-location>/WEB-INF/lib/shale-clay.jar</taglib-location>
</taglib>
</jsp-config>
If that doesn't work (i.e., if the JSP engine can't find the tld file within the JAR file for some reason),
pull the TLD file out of the JAR file, place it somewhere in your WEB-INF directory (perhaps in a
subdirectory named "tld", for example), and put this in your web.xml instead:
<jsp-config>
<taglib>
<taglib-uri>http://shale.apache.org/clay</taglib-uri>
<taglib-location>/WEB-INF/tld/shale-clay.tld</taglib-location>
</taglib>
</jsp-config>
Note that if you are using more than one tag library, each tag library that you use needs its own <taglib>
entry, and all <taglib> elements must be contained within a single <jsp-config> (the XML schema
validator will reject it if you have more than one <jsp-config>).
As was already pointed out, the URI's are only unique names, and have no meaning in terms of where JSP looks
for the definitions.
Rich Eggert
Member of Technical Staff
Proteus Technologies, LLC
http://www.proteus-technologies.com
-----Original Message-----
From: Cristi Magherusan [mailto:cristi.magherusan <at> net.utcluj.ro]
Sent: Sun 5/11/2008 8:00 PM
To: user <at> shale.apache.org
Subject: Broken URL's
Hello,
I'm having a school project that must use shale, but it seems its
taglibs uri's are broken links, among others. Please someone fix them,
if possible. Also, is there a way to use local files instead of http://
links?
Please use cc to send your answers to me since I'm not yet subscribed to
the shale Mailing List.
?Thanks!
Cristi