Hello all, Although I'm using Tomcat v4.1.12 with Apache's JSTL Taglib, this issue really applies to *all* taglibs, not just JSTL:
I'm finding that if I have several webapps (i.e., several Contexts), all using JSTL, I need to replicate the taglib JARs (jstl.jar and standard.jar) to the "WEB-INF/lib" directories of *each* webapp using JSTL. Of course, this means that each webapp loads its own copy of the classes contained in those JARs. That seems a bit wasteful. I would much rather put the JARs in a common directory, (e.g., Tomcat's "common/lib") thereby allowing all webapps to share the same JARs. Unfortunately, this technique does not work. When I move the JARs to Tomcat's "common/lib" directory I receive an error when I try to run a JSP containing a JSTL tag. The error message indicates the JAR (jstl.jar) cannot be found. My TLD resides in "\WEB-INF". I do *not* have <taglib> elements in web.xml. One suggestions I received was to include <taglib> elements in web.xml but that will not work since the <taglib-location> element cannot refer to a location outside the current context. Does anyone have an idea about this -- how to share taglib JARs across contexts? Thanks... =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com