This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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).