Ralph is right.  You don't really need to put an entry for it in the web.xml.  I 
just had it in there since thats what the struts example does.

        - Purav



>       I don't change my web.xml at all.
>       
>       In my JSP-page I have the following:
>       
>       <%@ taglib uri="/WEB-INF/some.tld" prefix="whatever" %>
>       
>       where the uri gives the path to the tld-file relative to the webapp you 
>are
>       working on.
>       Then you need no <taglib>... in your web.xml. it's the easiest way I 
>think.
>       
>       Hope that help's
>       
>       Ralph
        
        
        > -----Ursprüngliche Nachricht-----
        > Von: Purav Patel - Sun Microsystems
        > [mailto:[EMAIL PROTECTED]]
        > Gesendet: Dienstag, 30. Januar 2001 23:26
        > An: [EMAIL PROTECTED]
        > Betreff: Re: Still Problems with tag libraries
        >
        >
        > I have done this by placing the *.tld files under WEB-INF
        > directory because I
        > had problems when I kept those files in WEB-INF/lib.
        >
        > Then in my web.xml file I refer to this as:
        >
        >      <taglib>
        >         <taglib-uri>/WEB-INF/some.tld</taglib-uri>
        >         <taglib-location>/WEB-INF/some.tld</taglib-location>
        >     </taglib>
        >
        > Now, in my jsp page, I would have the following:
        >
        >
        >         <%@ taglib uri="/WEB-INF/some.tld" prefix="whatever" %>
        >
        >
        > Thats all.  Give it a try.
        >
        >       - Purav
        >
        >
        >       Mailing-List: contact [EMAIL PROTECTED];
        > run by ezmlm
        >       list-help: <mailto:[EMAIL PROTECTED]>
        >       list-unsubscribe:
        > <mailto:[EMAIL PROTECTED]>
        >       list-post: <mailto:[EMAIL PROTECTED]>
        >       Delivered-To: mailing list [EMAIL PROTECTED]
        >       From: Antillon Reyes Rafael Martin - EXT <[EMAIL PROTECTED]>
        >       To: [EMAIL PROTECTED], A mailing list about
        > Java Server
        > Pages specification andreference <[EMAIL PROTECTED]>
        >       Subject: Still Problems with tag libraries
        >       MIME-Version: 1.0
        >       X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N
        >       Content-Transfer-Encoding: 8bit
        >       X-MIME-Autoconverted: from quoted-printable to 8bit by
        > virtucon.East.Sun.COM id RAA19003
        >
        >               Hello Everyone:
        >
        >       My problem is that when i run my Example.jsp, it doesn´t
        >       recognizes the tag library within it. I´m using Tomcat 3.1
        >       This is the Jsp portion where the error is:
        >
        >
        > ------------------------------------------------------------------
        > ----------
        >       -----
        >               <%@ taglib uri="rollo" prefix="csajsp" %>
        >
        > ------------------------------------------------------------------
        > ----------
        >       -----
        >
        >
        >       my web.xml (the one in the local WEB-INF directory)look like 
this:
        >
        >
        >
        > ------------------------------------------------------------------
        > ----------
        >       -----
        >           <taglib>
        >               <taglib-uri>
        >                  rollo
        >               </taglib-uri>
        >               <taglib-location>
        >                  /WEB-INF/lib/csajsp-taglib.tld
        >               </taglib-location>
        >           </taglib>
        >
        > ------------------------------------------------------------------
        > ----------
        >       -----
        >
        >
        >       The tag library obviously is csajsp-taglib.tld, but i don´t
        > know where
        >       to put it, is in /WEB-INF/lib, or what am i missing.
        >       There´s an example and i´ve done it how i see it is, but
        > still get the
        > error
        >
        >       below.
        >
        >       any ideas, cuz i´m desperated. Thanz in advance. Rafael.
        >
        >       The error is something like this, and happens when i run the
        > Example.jsp:
        >
        >
        >
        > ------------------------------------------------------------------
        > ----------
        >       -----
        >       Error: 500
        >       Location: /des/jsp/SimpleExample.jsp
        >       Internal Servlet Error:
        >                                                       (Can´t open
        > "rollo" tag
        >       library, in english)
        >       org.apache.jasper.JasperException: No se puede abrir la
        > libreria de tags
        >       rollo : Parse Error in the tag library descriptor:
        > com.sun.xml.parser/V-036
        >       web-app servlet
        >               at
        >
        > org.apache.jasper.compiler.JspParseEventListener.handleDirective(J
        > spParseEve
        >       ntListener.java:672)
        >               at
        >
        > org.apache.jasper.compiler.DelegatingListener.handleDirective(Dele
        > gatingList
        >       ener.java:116)
        >               at
        >       
org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
        >               at 
org.apache.jasper.compiler.Parser.parse(Parser.java:1073)
        >               at 
org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
        >               at 
org.apache.jasper.compiler.Parser.parse(Parser.java:1034)
        >               at
        > org.apache.jasper.compiler.Compiler.compile(Compiler.java:182)
        >               at
        > org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
        >               at
        >
        > org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNeces
        > sary(JspSe
        >       rvlet.java:149)
        >               at
        >
        > org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(Jsp
        > Servlet.ja
        >       va:161)
        >               at
        >
        > 
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
        >               at
        > org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
        >               at
        > javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        >               at
        >
        > org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper
        > .java:503)
        >               at
        >
        > org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
        >               at
        >
        > org.apache.tomcat.service.http.HttpConnectionHandler.processConnec
        > tion(HttpC
        >       onnectionHandler.java:160)
        >               at
        >
        > org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoin
        > t.java:338
        >       )
        >               at java.lang.Thread.run(Unknown Source)
        >
        > ------------------------------------------------------------------
        > ----------
        >       -----
        >
        >
        > ---------------------------------------------------------------------
        >       To unsubscribe, e-mail: 
[EMAIL PROTECTED]
        >       For additional commands, email: 
[EMAIL PROTECTED]
        >
        >
        >
        > ---------------------------------------------------------------------
        > To unsubscribe, e-mail: [EMAIL PROTECTED]
        > For additional commands, email: [EMAIL PROTECTED]
        >
        
        
        ---------------------------------------------------------------------
        To unsubscribe, e-mail: [EMAIL PROTECTED]
        For additional commands, email: [EMAIL PROTECTED]
        


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to