I put the tld file in $MYAPPLICATION/WEB-INF/tld/form-tags.tld My application is delivered as a war (which tomcat expands), and contains $MYAPPLICATION/WEB-INF/tld/form-tags.tld
(I don't have any other jar, except the war) -----Message d'origine----- De : Keith Hankin [mailto:[EMAIL PROTECTED] Envoyé : mardi 1 juin 2004 09:19 À : Tomcat Users List Objet : Re: Where to put tld files for jarred custom taglibs? Where did you put the tld file in your jar file? Did you also put the jar into a war file? ----- Original Message ----- From: "STOCKHOLM, Raymond" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, June 01, 2004 12:44 PM Subject: RE: Where to put tld files for jarred custom taglibs? > web.xml : > <taglib> > <taglib-uri>form-tags</taglib-uri> > <taglib-location>/WEB-INF/tld/form-tags.tld</taglib-location> > </taglib> > JSP : > <%@ taglib uri="/WEB-INF/tld/form-tags.tld" prefix="ftags" %> > > > I declared as above, and it worked for me, don't ask me why :-) > > > -----Message d'origine----- > De : Keith Hankin [mailto:[EMAIL PROTECTED] > Envoyé : mardi 1 juin 2004 09:01 > À : Tomcat Users List > Objet : Re: Where to put tld files for jarred custom taglibs? > > > I locate it as follows: <%@ taglib uri="http://website.com/mypkg/mytags.tld" > prefix="mypref" %> > , then in my web.xml have the following: > <taglib> > <taglib-uri> > http://website.com/mypkg/mytags.tld > </taglib-uri> > <taglib-location> > /mytags.tld > </taglib-location> > </taglib> > > I also try specifying taglib-location as /META-INF/mytags.tld, > /WEB-INF/mytags.tld, etc. > > ----- Original Message ----- > From: "STOCKHOLM, Raymond" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Tuesday, June 01, 2004 12:09 PM > Subject: RE: Where to put tld files for jarred custom taglibs? > > > > How did you locate your tld in your JSP ? > > > > something like this ? > > <%@ taglib uri="/WEB-INF/tld/form-tags.tld" prefix="ftags" %> > > > > -----Message d'origine----- > > De : Keith Hankin [mailto:[EMAIL PROTECTED] > > Envoyé : mardi 1 juin 2004 08:31 > > À : [EMAIL PROTECTED] > > Objet : Where to put tld files for jarred custom taglibs? > > > > > > I have created a custom taglib, extending TagSupport. I have packaged the > > class files into a jar. I have also added the tld file to this jar. I then > > place this jar file in my war file under WEB-INF/lib. However, no matter > > where I place the tld file in the jar, it seems that Tomcat is unable to > > find it. I have read the documentation, which is as clear as mud on this > > issue. > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]