Marco M wrote:
>
> Hi all,
> i wrote a JSP tag, following the tutorial of the http://jsptags.com
>
> i am using tomcat....
>
> first i would like to know if tomcat supports jsp tags written by developer
>
> if so, why i got the following exception, if someone can help me?
>
> org.apache.jasper.JasperException: Unable to open taglibrary mytags.jar : no
> protocol: mytags.jar
> [...]
Most likely this is because you point to the tag library JAR file instead
of the tag library TLD file, either in the taglib directive in the JSP page
or in the <taglib-location> element in the web.xml file.
You *should* be able to point to the JAR file, but Tomcat 3.1 doesn't
support it. Instead you need to extract the TLD from the JAR file and
point to this file instead. For instance, if you put the TLD in
WEB-INF/tlds, use a taglib directive like this:
<%@ taglib uri="/WEB-INF/tlds/taglib.tld" prefix="foo" %>
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets