A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
RabbitMQ in Depth
this week in the
Web Component Certification (SCWCD/OCPJWCD)
Doubt about Locations of TLD files
Joined: Feb 07, 2005
Nov 27, 2006 23:40:00
TLD files can be stored at following places
2.inside sub folders of WEB-INF
3.inside META-INF which is located inside WEB-INF/lib/jar
4.inside sub folders of META-INF
Here is My doubt
Question 1 pno=:485 of HFS&JSP says
TLD files cannot be palced in META-INF dir of WAR file.Because files are not recognized in META-INF of WAR file.
Above statement looks like opposite of statement no-3
Joined: Mar 18, 2004
Nov 27, 2006 23:55:00
Statement 3 says that TLD file can be located in META-INF directory if tags are packaged as jar file. It doesn't say about WAR file.
[ November 27, 2006: Message edited by: Ali Gohar ]
Joined: Nov 13, 2006
Nov 28, 2006 00:16:00
I Guess you know that there are 2 META-INF files if you deploy the application in WAR file.
1 is inside the contextroot,
2 is inside contextroot/WEB-INF/lib/jar/META-INF.
Hope it hepls. Good luck.
[ November 28, 2006: Message edited by: Siddharth Purandare ]
Siddharth Purandare<br />SCJP 1.4 - 76%<br />SCWCD 1.4 - 85%<br /> <br />It is the "attitude" and not the "aptitude" which determines "altitude".
Joined: Oct 21, 2005
Nov 29, 2006 02:57:00
Yes thats true.You can keep under sub directory of META_INF directory located under WEB-INF\LIB\*.jar and not under context-root\META-INF in the WAR deployed web application
I agree. Here's the link:
subject: Doubt about Locations of TLD files
Four places the Container looks for TLDs - Errata for HFSJ
Doubt in mocktest
Location of tld files
Doubt in HFSJ mock exam questions - 9 & 55
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015