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

Reply via email to