File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
Author

taglibs in Tomcat 3.2.1 - a question

Pho Tek
Ranch Hand

Joined: Nov 05, 2000
Posts: 761

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 ?
Thanks
Pho


Regards,

Pho
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12675
    
    5
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.
Bill

------------------
author of:


Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: taglibs in Tomcat 3.2.1 - a question
 
Similar Threads
Struts taglibs - references - doubt
Forte 2.0 and taglibs
jstl problem
Doubt on taglib?
adding taglib to web.xml