My definition look like below.  Make sure you have them in the correct place
in web.xml.

   <taglib>
      <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>

      <taglib-location>/WEB-INF/tld/c.tld</taglib-location>
   </taglib>

   <taglib>
      <taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>

      <taglib-location>/WEB-INF/tld/fmt.tld</taglib-location>
   </taglib>

-----Original Message-----
From: e [mailto:[EMAIL PROTECTED]
Sent: Friday, August 22, 2003 2:10 PM
To: [EMAIL PROTECTED]
Subject: problems with install



I've downloaded the standard taglibs from 
http://www.apache.org/dist/jakarta/taglibs/standard/
I am having issues with getting them to work.

I am using the following in my jsps:

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>

If I don't declare the taglibs in my web.xml file, I get:

Fatal error: http://java.sun.com/jstl/core: Failed to find taglib for an 
absolue URI 'http://java.sun.com/jstl/core'.
Fatal error: /WEB-INF/tiles/content/menu.jsp (5): TagLib 
declaration  prefix='c', uri='http://java.sun.com/jstl/core' failed, 
reason: Failed to find taglib for URI.

If I do declare them as follows, I get errors...

        <taglib>
                <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
                <taglib-location>/WEB-INF/c.tld</taglib-location>
        </taglib>


        Warning: http://java.sun.com/jstl/core: Unknown element
'tlib-version' 
encountered while parsing the TLD.
        Warning: http://java.sun.com/jstl/core: Unknown element
'jsp-version' 
encountered while parsing the TLD.
        Warning: http://java.sun.com/jstl/core: Unknown element 'short-name'

encountered while parsing the TLD.
        Warning: http://java.sun.com/jstl/core: Unknown element
'display-name' 
encountered while parsing the TLD.
        Warning: http://java.sun.com/jstl/core: Unknown element
'description' 
encountered while parsing the TLD.
        Warning: http://java.sun.com/jstl/core: Unknown element 'validator' 
encountered while parsing the TLD.
        Warning: http://java.sun.com/jstl/core: Unknown element 'tag-class' 
encountered while parsing the TLD.
        Warning: http://java.sun.com/jstl/core: Unknown element
'body-content' 
encountered while parsing the TLD.


Anybody have any ideas what I'm doing wrong?
I have J2EE 1.2.

Thanks.

-e







---------------------------------------------------------------------
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]

Reply via email to