• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question on tag files?

 
Joe Harry
Ranch Hand
Posts: 10080
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

Do a .tag file need a TLD?
 
Joe Harry
Ranch Hand
Posts: 10080
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I got this. A .tag file needs a TLD if it is deployed in a jar, but if it's put directly into the web-app inside the WEB-INF directory, it doesn't need one.
 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Almost,

If you put them inside the directory WEB-INF/tags or a subdirectory then you don't need a tld.
 
James Mark
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
that TLD should be in META-INF inside the jar that is inside WEB-INF/lib
use uri attribute in the taglib directive instead of tagdir attribute
 
Pawanpreet Singh
Ranch Hand
Posts: 264
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jothi,

The syntax in tld file which will be under META-INF of jar file will be like this

<tag-file>
<name>Header</name>
<path>/META-INF/tags/Header.tag</path>
</tag-file>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic