This behavior is described in the JSP 1.2 specification, in section JSP.7.3 (not in one single place in the section).
> -----Original Message----- > From: Schwartz, David (CHR) [mailto:[EMAIL PROTECTED] > > Hi David. > This method works great. Thanks > Is there any downside to using it? Is it still considered "standard"? > > -----Original Message----- > From: Karr, David [mailto:[EMAIL PROTECTED] > > The setup can be a little simpler than this. The taglib jar can contain > the TLD for the taglib in the "META-INF" directory of the jar. If it is > present there, you do not have to deploy the TLD separately. In > addition, if the TLD is present there, you do not have to have the > explicit taglib map in your "web.xml" file. In this case, your "taglib" > directive in the JSP page needs to specify the URI that is specified in > the TLD in the taglib jar file, which is hopefully documented in the > taglib documentation (so you don't have to open the file in the jar > file). > > If this is done correctly, you can skip steps 2 and 3 of this process. > > > -----Original Message----- > > From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] > > > > > I thought I liked the idea of having the taglib in the web.xml file. > > > When I try it I'm getting "This absolute uri > > > (http://java.sun.com/jstl/core) cannot be resolved in either web.xml > or > > > the jar files deployed with this application". Do I have to download > it > > > somewhere in order to use it in the web.xml file? Any ideas? > > > > :-) > > > > OK, four things when dealing with ANY tag library: > > > > 1. PLACE JAR FILES > > > > Place JAR files that hold implementation of the tag library in a > directory > > where Tomcat will pick it up. Either make it "WEB-INF/lib/" (private) > or > > "${CATALINA_HOME}/shared/lib" (all web-apps will have access to it). > You > > could place it in "${CATALINA_HOME}/common/lib", but I don't see the > point > > in Tomcat having access to those JARs. There was a discussion recently > > naming pros/cons of each choice (Craig), so look up the archives. > > > > 2. PLACE TLD > > > > Place TLD files (Tag Library Descriptor) in either "WEB-INF/" or (if I > > recall correctly) "WEB-INF/taglibs/". The first placement will require > for > > "location" in "web.xml" file to be absolute: "/WEB-INF/<name>.tld", > while > > the second will allow for relative links: "<name>.tld" > > > > 3. DECLARE TLD IN WEB.XML > > > > This part you've already seen. > > > > <taglib> > > <taglib-uri>http://java.sun.com/jstl/core</taglib-uri> > > <taglib-location>/WEB-INF/c.tld</taglib-location> > > </taglib> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
