• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TLD location?

 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the right (recommended) location of TLD (.tld) files:



Thanks.
[ December 11, 2005: Message edited by: rathi ji ]
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I usually go like
<application>/META-INF/tlds
 
deng shuangyi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
usually *.tld 's position:
webapps -> application -> WEB-INF -> my.tld
 
Stefan Evans
Bartender
Posts: 1780
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Quoting the JSP2.0 specification section 7.3.1

Tag library descriptor files have names that use the extension .tld, and the
extension indicates a tag library descriptor file. When deployed inside a JAR file,
the tag library descriptor files must be in the META-INF directory, or a subdirectory
of it. When deployed directly into a web application, the tag library descriptor
files must always be in the WEB-INF directory, or some subdirectory of it. TLD
files should not be placed in /WEB-INF/classes or /WEB-INF/lib.


IMO bundling tag libraries into a jar file is the best approach.
So put the tld in the META-INF directory of the jar.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65120
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This should have been asked in the JSP forum. Moved there.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic