wood burning stoves
The moose likes Servlets and the fly likes taglibs in Tomcat 3.2.1 - a question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Servlets
Bookmark "taglibs in Tomcat 3.2.1 - a question" Watch "taglibs in Tomcat 3.2.1 - a question" New topic

taglibs in Tomcat 3.2.1 - a question

Pho Tek
Ranch Hand

Joined: Nov 05, 2000
Posts: 776

I inherited a webapp that uses taglibs but it doesn't seem to
be implemented according to the docs.
In a JSP file:
<%@ taglib uri="/WEB-INF/mytaglib.tld" prefix="x" %>
And the web.xml doesn't contain any <taglib> elements.
But it works? Why, is this just a special feature of Tomcat?
I always thought that the uri attribute points to an opaque
value that uniquely identifies which taglib to load and not point to an actual physical file.
What are your thoughts on this ?


William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13000
Using a relative URI is a legal way to identify a taglib. This is called default mapping.
The best reference for these questions is the JSP API which you can download from java.sun.com in PDF format.

author of:
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: taglibs in Tomcat 3.2.1 - a question
jQuery in Action, 3rd edition