tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maya Muchnik <mmuch...@pumatech.com>
Subject [Fwd: Unable to open taglibrary...]
Date Tue, 27 Feb 2001 12:42:31 GMT


-------- Original Message --------
Subject: Unable to open taglibrary...
Date: Tue, 27 Feb 2001 12:16:33 -0000
From: "shankar kadam" <shankar.kadam@gradient.ie>
Reply-To: <shankar.kadam@gradient.ie>
To: <mmuchnik@pumatech.com>


Hi,


I installed  tomcat3.2 and try to implement Tag lib examples.
The examples with installation and sun web side are working fine but
when I
wrote one it is not working.
I put jsp, taglib.tld, web.xml and Tag Handler class (helloworld.class)
in
appropriate directories.
The source is as:


========Jsp file =================================
<%@ taglib uri="/tlt" prefix="mt" %>
<HTML>
<HEAD>
<TITLE>Hello World!</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<HR>
<mt:helloWorld/>
<HR>
</BODY>
</HTML>

============web.xml ===========================
<?xml version="1.0" ?>
<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
	<taglib>
		<taglib-uri>/tlt</taglib-uri>
		<taglib-location>/WEB-INF/taglib.tld</taglib-location>
	</taglib>
</web-app>
===========================================================

I am getting following error

Internal Servlet Error:
org.apache.jasper.compiler.CompileException:
D:\Tomcat\webapps\taglib\HelloWorld.jsp(0,0) Unable to open taglibrary
/tlt
: D:\Tomcat\webapps\taglib\tlt (The system cannot find the file
specified)
	at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve
ntListener.java, Compiled Code)
	at
org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList
ener.java:116)

============================================================================
==================
I try with  <%@ taglib uri="taglib.tldt" prefix="mt" %>  and
<taglib-uri></taglib-uri> and other options in
<taglib-uri>....</taglib-uri>
but not working.


can you suggest the answer to above problem.

Reagrsd
Shankar Kadam

Mime
View raw message