tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig Longman <cra...@begeek.com>
Subject referencing taglibs
Date Thu, 12 Sep 2002 20:30:35 GMT

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


Mime
View raw message