tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "STOCKHOLM, Raymond" <R.STOCKH...@aubay.lu>
Subject RE: Where to put tld files for jarred custom taglibs?
Date Tue, 01 Jun 2004 07:14:25 GMT
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.STOCKHOLM@aubay.lu>
To: "Tomcat Users List" <tomcat-user@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


Mime
View raw message