File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes TLD files placement in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "TLD files placement in JSP" Watch "TLD files placement in JSP" New topic
Author

TLD files placement in JSP

Narendra Dhande
Ranch Hand

Joined: Dec 04, 2004
Posts: 950
hello,

I am beginner to JSP. While reading the JSP specification 2.0, I have a dought about some lines in the specs.

Page 159 it is mentioned that :

" Packaged tag libraries must hav at leatst one tag library descriptor file. The JSP 1.1 specification allowed only a single TLD, in META-INT/taglib.tls, but as of JSP 1.2 multiple tag libraries are allowed."


On page 161 :

" The TLD resource path is interpreted relative to the root of the web application and should resolve to a TLD file directly, or a JAR file that has a TLD file at location META-INF/taglib.tld. If the TLD resource path is not one of these two cases, fatal translation error will occur."

On page 162 :

" 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."

From the above three paragraphs, it is looking some contardictions about the placement of TLD files in JAR files ( in JSP 2.0)

I have tested on my tomcat container and it is allowing me to place the .tld files under /META-INF and its subdirectory. Is it true for other containers? ( viewing the paragraph on page 161).

Any suggestion plese ?
Thanks.


Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: TLD files placement in JSP