• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Location of a tld file

 
Yogesh Hingmire
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends,

1) HFSJ says that the tld file has to be somewhere under the WEB-INF , However the SCWCD Study kit by Hanumant Deshmukh says it can also be present under any directory in the web-app.

I havent tried this yet, but could you guys confirm on this.

2) Also the SCWCD Study kit says, when deployed as a jar file, the name of the taglib MUST be taglib.tld. I think this is also not true. say for eg the struts.jar contains tld's but they are not named as taglib.tld.

Please let me know on the same.

Thanks,
Yogesh
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All wrong

1)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.

2)You can give it any name you want. Tag library descriptor files have names that use the extension .tld, and the extension indicates a tag library descriptor file.
 
Yogesh Hingmire
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One more thing then to watch out for people who are using SCWCD Study Kit

Yogesh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic