You are viewing a plain text version of this content. The canonical link for it is here.
Posted to watchdog-dev@jakarta.apache.org by Juergen Weber <we...@yahoo.com> on 2000/07/31 17:25:44 UTC
Help for using tag libs
Hello,
I'm having difficulties configuring tag libraries.
I assume:
taglib-uri is any string, could be random letters, it
is used in .jsp for taglib url=
taglib-location is the location below the webapp file
I have:
Context log: path="/fire" Adding context path="/fire"
docBase="webapps/fire"
C:\Apache\tomcat\webapps\fire\template.jsp:
<%@ taglib uri="firelib" prefix="foo" %>
C:\Apache\tomcat\webapps\fire\WEB-INF\tlds\taglib.tld
C:\Apache\tomcat\webapps\fire\WEB-INF\web.xml :
<taglib>
<taglib-uri>
firelib
</taglib-uri>
<taglib-location>
/WEB-INF/tlds/taglib.tld
</taglib-location>
</taglib>
But tomcat 3.1 says:
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to open
taglibrary firelib : Parse Error in the tag library
descriptor: com.sun.xml.parser/V-005 web-app
at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java,
Compiled Code)
at
org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:116)
at
org.apache.jasper.compiler.Parser$Directive.accept(Parser.java,
Compiled Code)
Thanks for your hints,
Juergen
__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/
Re: Help for using tag libs
Posted by sravankumar duggaraju <sr...@Sun.COM>.
Why don't you try once again by putting "/" before firelib both in
taglib directive ( i.e uri="/firelib") and in web.xml uri mapping,
like taglib-uri>
/firelib
</taglib-uri>
Juergen Weber wrote:
>
> Hello,
>
> I'm having difficulties configuring tag libraries.
>
> I assume:
>
> taglib-uri is any string, could be random letters, it
> is used in .jsp for taglib url=
>
> taglib-location is the location below the webapp file
>
> I have:
>
> Context log: path="/fire" Adding context path="/fire"
> docBase="webapps/fire"
>
> C:\Apache\tomcat\webapps\fire\template.jsp:
>
> <%@ taglib uri="firelib" prefix="foo" %>
>
> C:\Apache\tomcat\webapps\fire\WEB-INF\tlds\taglib.tld
>
> C:\Apache\tomcat\webapps\fire\WEB-INF\web.xml :
>
> <taglib>
> <taglib-uri>
> firelib
> </taglib-uri>
> <taglib-location>
> /WEB-INF/tlds/taglib.tld
> </taglib-location>
> </taglib>
>
> But tomcat 3.1 says:
>
> Internal Servlet Error:
>
> org.apache.jasper.JasperException: Unable to open
> taglibrary firelib : Parse Error in the tag library
> descriptor: com.sun.xml.parser/V-005 web-app
> at
> org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java,
> Compiled Code)
> at
> org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:116)
> at
> org.apache.jasper.compiler.Parser$Directive.accept(Parser.java,
> Compiled Code)
>
>
> Thanks for your hints,
> Juergen
>
> __________________________________________________
> Do You Yahoo!?
> Kick off your party with Yahoo! Invites.
> http://invites.yahoo.com/