• Post Reply Bookmark Topic Watch Topic
  • New Topic

taglib declaration  RSS feed

 
Jazzy Sanchez
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my experience of using 3rd party codes, they normally require(based on their docs) that to implement it, you must declare the .tld file via their website. Example:



But in my eclipse environment, i have to download the tld file and store it to my /WEB-INF folder and declare it from there in my jsp.

Is there a problem with my environment, or is it a documentation error?

This happened to me twice now using "Display Tag Library" and "Struts".

Thanks in advance!
 
Satya Maheshwari
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that unless the tag library you are using is a known library whose implementation is itself provided by the container, you need to be having the tld to be present somwhere in your application. Usually the tld comes in the META-INF directory in the packaged JAR.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66153
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you must declare the .tld file via their website


You are confusing a URI with a URL. Please see this previous discussion on the topic.
 
Jazzy Sanchez
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for enlightening me. I assume then that you really have the tld file on your WEB-INF folder.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66153
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Usually a TLD will be packaged within the jar file for its library's code. There's no need to extract it and put it anywhere.
[ July 15, 2007: Message edited by: Bear Bibeault ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!