• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TLD Resource path

 
Shivani Chandna
Ranch Hand
Posts: 380
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The order of search for the TLD's by the container is as follows:


1.-- Taglib Map in web.xml
2.-- Implicit Map Entries from TLDs (??)
3.-- TLDs in JAR files in WEB-INF/lib
4.---TLDs under WEB-INF
5.-- Implicit Map Entries from the Container(??)


Can you explain Implicit Map Entries from TLDs and Implicit Map Entries from the Container(Points 2&5) with example.

For point 5: Implicit map entries created by container for tag files and for
"libraries that are known to the Container"
- what are these libraries ? Any example of that?.


For point 3: The explanation is given thus in the SPECS:

"The container searches for all files with a .tld extension under /WEB-INF or a subdirectory, and inside JAR files that are in /WEB-INF/lib."


But doesnt the above search fall under Points 3 & 4 ??


Regards,
Shivani
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you explain Implicit Map Entries from TLDs and Implicit Map Entries from the Container(Points 2&5) with example.


JSP.7.3.4 Implicit Map Entries from TLDs
The container looks for the <uri> tag in TLD files and create the appropriate mapping to the TLD file.

JSP.7.3.5 Implicit Map Entries from the Container
As it depends on the container, I can't say much. Refer to the container's doc to see if it declares some mappings.


But doesnt the above search fall under Points 3 & 4 ??

I don't know where you've got those five as there are only three in the spec:

1. Taglib Map in web.xml
2. Implicit Map Entries from TLDs
TLDs in JAR files in WEB-INF/lib
TLDs under WEB-INF
3. Implicit Map Entries from the Container
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic