tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph Bobrik" <bob...@gmx.de>
Subject AW: Still Problems with tag libraries
Date Tue, 30 Jan 2001 22:38:27 GMT
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:puravp@virtucon.East.Sun.COM]
> Gesendet: Dienstag, 30. Januar 2001 23:26
> An: tomcat-user@jakarta.apache.org
> 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 tomcat-user-help@jakarta.apache.org;
> run by ezmlm
> 	list-help: <mailto:tomcat-user-help@jakarta.apache.org>
> 	list-unsubscribe:
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> 	list-post: <mailto:tomcat-user@jakarta.apache.org>
> 	Delivered-To: mailing list tomcat-user@jakarta.apache.org
> 	From: Antillon Reyes Rafael Martin - EXT <ExtRAntil@vto.com>
> 	To: tomcat-user@jakarta.apache.org, A mailing list about
> Java Server
> Pages specification andreference <JSP-INTEREST@java.sun.com>
> 	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: tomcat-user-unsubscribe@jakarta.apache.org
> 	For additional commands, email: tomcat-user-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org
>


Mime
View raw message