This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Location of TLD files : Is HFS Correct? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Location of TLD files : Is HFS Correct?" Watch "Location of TLD files : Is HFS Correct?" New topic
Author

Location of TLD files : Is HFS Correct?

Justin
Greenhorn

Joined: Sep 10, 2004
Posts: 6
The following segment is from JSP 2.0 Spec

JSP.7.3.1 Identifying Tag Library Descriptors
Tag library descriptor files have names that use the extension .tld, and the
extension indicates a tag library descriptor file. When deployed inside a JAR file,
the tag library descriptor files must be in the META-INF directory, or a subdirectory
of it. When deployed directly into a web application, the tag library descriptor
files must always be in the WEB-INF directory, or some subdirectory of it. TLD
files should not be placed in /WEB-INF/classes or /WEB-INF/lib.



In HFS, it is mentioned in number of places (and also there is a question in Mock exam), that TLD files can be placed in any subdirectory of WEB-INF.

So is HFS correct?

[ October 23, 2004: Message edited by: Justin ]
[ October 23, 2004: Message edited by: Justin ]
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
I guess HFS&J just miss about the location cannot be within lib and classes.

Nick


SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
Kathy Sierra
Cowgirl and Author
Ranch Hand

Joined: Oct 10, 2002
Posts: 1572
Howdy --
In this case, the way we say it in the book is correct for the exam. In the spec (and in the book) we make a BIG distinction between the word "must" and "should", so when the spec writers say "should" and "should not" that is very different from "must" or "must not" or "cannot".

So the correct answer is still that the TLD must be within WEB-INF or a subdirectory. The fact that you *should* keep it out of /classes or /lib is a separate issue, and we felt that it was hard enough to memorize all the details, so we stuck with the ones that were absolute "musts" in the spec

So, you're safe with the way we talk about it in the book, *and*, when you're studying the spec, pay VERY close attention to "should" vs. "must"--the real exam does, and (most of the time) the spec writers used those words very carefully.

Cheers,
Kathy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Location of TLD files : Is HFS Correct?