aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes question9 from HFSJ mock exam Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "question9 from HFSJ mock exam" Watch "question9 from HFSJ mock exam" New topic
Author

question9 from HFSJ mock exam

santhoshkumar samala
Ranch Hand

Joined: Nov 12, 2003
Posts: 156

The question 9 of HFSJ mock exam :


Which are true about tag libraries in web applications

a)A TLD file must exist in the /WEB-INF/tlds/ directory
b)A TLD file may exist in any subdirectory of WEB-INF
c)A TLD file may exist in the WEB-INF directory in a JAR file
d)A TLD file may exist in the META-INF directory in a JAR file
e)A TLD file in a JAR file must be located at META-INF/taglib.tld


The given answers are b and d

How the answer is b? I think that only d is correct because tlds cant exist in any directory of WEB-INF. according to page number 476 of HFSJ the container will look into 4 places


santhosh<br />SCJP,SCWCD
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

b is correct.

JSP 7.3.4
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.When examining a
JAR file, only resources under /META-INF or a subdirectory are considered.
The order in which these files are searched for is implementation-specific and
should not be relied on by web applications.


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: question9 from HFSJ mock exam