On Sat, 19 May 2001, Jayson Falkner wrote:
> I assume it does. If so what is the correct way to use this functionality? I
> have been having little luck trying and can't find the answer documented.
>
> Here is a little insight on what I was attempting. The JAR has all of the
> class files in their correct directories along with a TLD in the META-INF
> directory named "exampleTags.tld".
>
> exampleTags.tld has the uri element set with the value "/exampleTags.tld".
>
> ...
> <taglib>
>   ...
>   <uri>/exampleTags.tld</uri>
> </taglib>

        Well, first it shouldn't be just plain "uri":

<taglib>
        <taglib-uri>/myPRlibrary</taglib-uri>
        <taglib-location>/WEB-INF/tlds/PRlibrary_1_4.tld</taglib-uri>
</taglib>

        And second, what are you using for the taglib-location?  That's
how it would locate the .tld file.  If you're not using one, perhaps you
need to prefix the URI with META-INF/ since all the TLDs are required to
be in the META-INF directory of the packaged JAR.

Aaron

> I am trying the following with a JSP.
> ---
> <%@ taglib prefix="e" uri="/exampleTags.tld" %>
> Here is the example tag output: <e:example />
> ---
> But a servlet exception error message keeps popping up.
>
> org.apache.jasper.JasperException: File "/exampleTags.tld" not found
> ...
>
>
> Anyone had this before? Advice would be appreciated.
>
> Jayson Falkner
> V.P./CTO, Amberjack Software LLC
> [EMAIL PROTECTED]
> www.jspinsider.com
>
>

Reply via email to