Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Location and name of tld

 
Osama Hasan
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I m using the Scwcd exam study kit by Hanumant Deshmukh for he 310-080 exam (the older version). It states that:

When deployed in a jar file,a TLD file must be placed either directly under or inside a sub-directory of the META-INF directory. In addition,the name of the TLD file must be taglib.tld.

But, while giving a mock exam I encountered this question:


Which of the following statements are correct regarding tag libraries?


Options

Select 1 correct option.

A.The tag library descriptor for a tag library must be kept in META-INF directory by the name taglib.tld if the tag library is packaged in a jar file.

B.The tag library descriptor for a tag library may be kept in WEB-INF/taglib.tld, if the tag library is packaged in a jar file.

C.A JSP 2.0 compliant container is guaranteed to generate impliciting mapping for JSTL tag libraries.

D.A JSP 2.0 compliant container will automatically genarate an implicit tag library for a set of tag files.


E.The tag library descriptor for a tag library not packaged as a jar file may be kept anywhere in /tld directory of the web application's document root.



Correct answer: D

But according to what I quoted from the book, option A should also be correct. I referred to the JSP specification 2.0 but it does not mention any restriction about the name of the TLD. Has this restriction been removed in the new version?
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic