You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Craig Longman <cr...@begeek.com> on 2002/09/12 22:30:35 UTC
referencing taglibs
i'm using tomcat 4.1.10
i am trying to understand the referencing of taglibs from jsp pages.
many samples on the 'net (including tutorials from sun) simply do the
following:
<%@ taglib prefix="c" uri="/jstl-c" %>
and then have this in their web.xml files:
<taglib>
<taglib-uri>/jstl-c</taglib-uri>
<taglib-location>/WEB-INF/tld/jstl-c.tld</taglib-location>
</taglib>
i would like to do the same, however i don't seem able to. the only way
i can get it to work is if the web.xml taglib-uri and the jsp taglib uri
all contain the same reference as the taglib-location above.
why is that? it seems that the point of a separate taglib-uri and a
taglib-location would be to allow pages to simply reference the
taglib-uri without regard for where the physical file is located, then
the taglib-location points to that physical file.
at this point, it seems like a bug in tomcat/jsp/jasper, but i would
like someone to confirm that i understand this correctly first.
thanks,
--
CraigL->Thx();
Be Developer ID: 5852