You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "STOCKHOLM, Raymond" <R....@aubay.lu> on 2004/06/01 09:14:25 UTC

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:keithh@addr.com]
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" <R....@aubay.lu>
To: "Tomcat Users List" <to...@jakarta.apache.org>
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:keithh@addr.com]
> Envoyé : mardi 1 juin 2004 08:31
> À : tomcat-user@jakarta.apache.org
> 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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Where to put tld files for jarred custom taglibs?

Posted by Keith Hankin <ke...@addr.com>.
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" <R....@aubay.lu>
To: "Tomcat Users List" <to...@jakarta.apache.org>
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:keithh@addr.com]
> 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" <R....@aubay.lu>
> To: "Tomcat Users List" <to...@jakarta.apache.org>
> 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:keithh@addr.com]
> > Envoyé : mardi 1 juin 2004 08:31
> > À : tomcat-user@jakarta.apache.org
> > 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: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org