File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes how does the taglib uri get resolved in tomcat? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "how does the taglib uri get resolved in tomcat?" Watch "how does the taglib uri get resolved in tomcat?" New topic
Author

how does the taglib uri get resolved in tomcat?

J. Adam White
Greenhorn

Joined: Jan 31, 2005
Posts: 16
When using jstl on tomcat, I can use:



The uri "http://java.sun.com/jstl/core" does not resolve to anything in particular. How is tomcat finding the tld file? Do other servers (such as weblogic) behave the same?

Regards,

Adam
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61095
    
  66

Tomcat, and any other spec-compliant servers, will search in a few places for .tld files whose internal URI declaration matches the URI specified in the taglib declaration.

Among those places are any .tld files in WEB-INF and its child folders, and any .tld file in the META-INF folder of a jar file on the classpath.
[ September 20, 2005: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: how does the taglib uri get resolved in tomcat?