• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TLD file location in webapps

 
Varun Selva
Ranch Hand
Posts: 48
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HFSJ mentioned that

it can be store

In the /META_INF directory of a Jar File Inside /WEB_INF/lib.
OR
IN/WEB_INF or a sub-directory!

So can we store inside the WEB_INF/classes directory or WEB_INF/lib ??
(those also sub directories of WEB_INF ):S

 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. Lots of typos here.
TDL -> TLD
META_INF -> META-INF
WEB_INF -> WEB-INF

The JSP specification tells you exactly where to store the TLD files :

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.
 
Varun Selva
Ranch Hand
Posts: 48
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Christophe Verré wrote:Hi. Lots of typos here.
TDL -> TLD
META_INF -> META-INF
WEB_INF -> WEB-INF

The JSP specification tells you exactly where to store the TLD files :

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.


yes you are correct!BUT
I just confused here!
But classes also lib also sub directories of the WEN_INF
IS it??
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2533
113
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But classes also lib also sub directories of the WEN_INF
IS it??

True, but should not doesn't mean is not allowed. If you put a TLD in one of those directories, it will still work...

Regards,
Frits
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic