• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Location and name of tld

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Liar, liar, pants on fire! refreshing plug:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic