Peter,

as far as I know, your entry in web.xml should be like this:

  <taglib>
    <taglib-uri>mytaglib.tld</taglib-uri>
    <taglib-location>/WEB-INF/mytaglib.tld</taglib-location>
  </taglib>

Without the leading /WEB-INF/ in the taglib-uri tag.

The RightWay(tm) to do it, is described in
http://java.sun.com/products/jsp/errata_1_1_a_042800.html

ciao,

-hendrik
- - - - - - - - - - - - - - - - - - - - - - - - - - -
  tagtraum industries      http://www.tagtraum.com/
  jo!                 small&smart 2.2 servletengine
  Java Server & Servlets   The web-application book
  The WebApp Framework        http://www.webapp.de/



Peter Booth wrote:

> I am having a problem porting some code from Weblogic to TomCat
> and am unsure about the relevant part of the JSP standard:
>
> What make a URI used in a taglib directive valid? If my taglib directive
> looks like so:
>
> <%@ taglib uri="mytaglib.tld" prefix="my" %>
>
> and my taglibrary descriptor in web.xml looks like so then should I be able
> to simply store my tld file in the WEB-INF directory?
>
>   <taglib>
>     <taglib-uri>/WEB-INF/mytaglib.tld</taglib-uri>
>     <taglib-location>/WEB-INF/mytaglib.tld</taglib-location>
>   </taglib>
>
> This seems to work with Weblogic but gives an error with TomCat:
>
> org.apache.jasper.JasperException: Unable to open taglibrary
> /WEB-INF/mytaglib.tld : Unable to open the tag library descriptor:
>
> I'm unclear whether this means that the file mytaglib.tld can't be found or
> can be found but can't be read. I have a Netscape Enterprise Server in
> front of both the TomCat and Weblogic server
>
> Any suggestions gratefully received.
>
> Peter Booth
> [EMAIL PROTECTED]
>
> ===========================================================================
> 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

===========================================================================
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

Reply via email to