Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

uri vs tagdir in tablib doubt

 
Garlapati Ravi
Ranch Hand
Posts: 171
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

<%@ taglib uri="WEB-INF/taglib.tld" prefix="h" %>
<%@ taglib tagdir="/WEB-INF/tags/taglib.tld" prefix="h" %>

can't we use 'uri' attribute in place of 'tagdir' attribute in the below directive.

could any one explain when exactly we use tagdir, where uri doesn't work.
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
could any one explain when exactly we use tagdir, where uri doesn't work.

If you have made a TLD for your library where a uri is set, then you can use the uri attribute. For Tag Files under WEB-INF/tags, the container will make an implicit TLD for you, but you don't know the uri. So you'll use the tagdir instead.
 
Kumar Garlapati
Ranch Hand
Posts: 38
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but you don't know the uri


what does it mean ?

how would i don't know where my .tld file reside. as a developer i know where i placed my tld, in that case i can use uri itself, then what is the use of tagdir attribute.
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
as a developer i know where i placed my tld

That's right. But with Tag Files (*.tag) under WEB-INF/tags (or any subdirectories), you don't need to make a TLD. So you don't know the uri either, as there isn't any.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic