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
Re: Broken URL's
smime.p7s Description: S/MIME Cryptographic Signature
Re: Broken URL's
Oops, sorry resending as plain text message: Cristi, I understand those taglib uris to be virtual only as unique keys for namespaces. They're not required to be a valid page for Shale or any other taglib. You can use tagdir="/WEB-INF/tags" as an alternative to uris for your own tags, but I'm not sure it's going to help you here. We'd need more details about the actual issue you're experiencing to help. Cristi Magherusan wrote: 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 smime.p7s Description: S/MIME Cryptographic Signature
RE: Broken URL's
You need to add something like this to your web.xml file: http://shale.apache.org/clay /WEB-INF/lib/shale-clay.jar 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: http://shale.apache.org/clay /WEB-INF/tld/shale-clay.tld Note that if you are using more than one tag library, each tag library that you use needs its own entry, and all elements must be contained within a single (the XML schema validator will reject it if you have more than one ). 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:[EMAIL PROTECTED] Sent: Sun 5/11/2008 8:00 PM To: user@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
Re: Broken URL's
On Sun, May 11, 2008 at 5:00 PM, Cristi Magherusan <[EMAIL PROTECTED]> wrote: > 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 describe the problem you're having, and I'm sure someone can help you sort it out. As others have mentioned a URI is an identifier, there's no requirement that a taglib uri be a valid url. If you use the correct URI (one that matches exactly with the one in the tld inside the jar file) then your container should discover the taglibs automatically. Specifically, you do *not* need to extract them from the jar or put anything in web.xml, unless you are using a very old Servlet container. Ignore the Struts references, and see if this helps: http://wiki.wsmoak.net/cgi-bin/wiki.pl?WebXmlNoTaglib and http://marc.info/?l=struts-user&m=104205482618830&w=2 > Please use cc to send your answers to me since I'm not yet subscribed to > the shale Mailing List. Just this once. :) You can watch the list on one of the many archive sites, like Nabble: http://www.nabble.com/Shale---User-f15689.html -- Wendy
Re: Broken URL's
Hello, Thanks for your answers! Well, the code itself is valid, but some IDEs (in my case netbeans) use them to enable smart code completion and other features for those tags. The problem is that the URI it needs (http://shale.apache.org/core) is a 404 and I get no help from netbeans. Also, I've found a few other broken links on the website that would be nice to be fixed: Only http://wiki.apache.org/shale/ShaleValidation references two broken ones. I'll try Richard's tip and report any results. Many thanks, Cristi