aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes About the position of tld files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "About the position of tld files" Watch "About the position of tld files" New topic
Author

About the position of tld files

Zhao zhenhua
Ranch Hand

Joined: Jul 17, 2006
Posts: 37

In which three directories relative to a web application's root,may a tag library descriptor file reside when deployed directly into a web application?
A: /WEB-INF
B: /META-INF
C: /WEB-INF/tlds/
D: /META-INF/tlds/
E: /WEB-INF/resources
F: /META-INF/resources

Can anyone help me?Thanks


Head first Servlet and JSP
Alex Belisle Turcot
Ranch Hand

Joined: Apr 26, 2005
Posts: 516
Originally posted by Zhao zhenhua:
[QB]In which three directories relative to a web application's root,may a tag library descriptor file reside when deployed directly into a web application?
A: /WEB-INF
B: /META-INF
C: /WEB-INF/tlds/
D: /META-INF/tlds/
E: /WEB-INF/resources
F: /META-INF/resources


Hi,

I believe tld files can be in any subdirectories of WEB-INF or packaged in a jarfile (in the META-INF directory).

So the 3 answers would be A-C-E.

Regards,
Alex
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 916

Hi

I have the same dilemma, and I also think that you have right, you can place the tld files in all the sub-directory, preferably in web-inf/tlds.

I hope I am right.

Regards,
M


SCJP, SCJD, SCWCD, OCPJBCD
Zhao zhenhua
Ranch Hand

Joined: Jul 17, 2006
Posts: 37

Thanks for your explain. The answer is ACE
Krishna Srinivasan
Ranch Hand

Joined: Jul 28, 2003
Posts: 1844

Yes..tld files must be inside WEB-INF. You can create sub folder inside the WEB-INF or directly put under the root directory.


Krishna Srinivasan
Spring Tutorials, OCAJP Mock Questions, 400+ OCPJP Mock Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: About the position of tld files