Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

hfjs question on jstl

 
Sudarshan Sreenivasan
Ranch Hand
Posts: 188
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is an explanation for one of the worng answers in hfjs pg 485

Option d : TLD files can declare both Simple and Classis tags , but TLD files are NOT used to declare Tag files

Explanation : Option D is invalid because Tag files may be declared in a tld (but it is rare)

Can someone throw some light on the explanation.Give a situation where we would declare a tag file in the tld and code sniplet about how to do it

Thanks
 
Srinivasan thoyyeti
Ranch Hand
Posts: 558
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sid,

Tag files placed under /WEB-INF/Tags or any sub directory under it then no need to have a tld for it.


Tags files placed under jar file's /META-INF/tags or any sub-directory under it then we should have tld declaration for tag file.

tld entry should be like this:
<tag-file>
<name>Header</name>
<path>/META-INF/tags/Header.tag</path>
</tag-file>


Hope the light reaches you.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!