🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java.programmer
Article #470

Newbie - problem with JSP tag libraries

#470
From: zalek
Date: Tue, 15 Jul 2008 23:39
43 lines
2417 bytes
Hello,

I am trying to execute on a JSP program on a server with jakarta-
tomcat-4.1.29.
Here is a program:

<%@ taglib uri="testTagURL" prefix="testTagPrefix" %>
<testTagPrefix:myFirstTag/>

in web.xml I have definition:

    <taglib>
        <taglib-uri>testTagURL</taglib-uri>
        <taglib-location>/WEB-INF/tld/testTag.tld</taglib-location>
    </taglib>

I have testTag.tld file located at: /WEB-INF/tld

When I execute my program I am getting:

org.apache.jasper.JasperException: File "/test-jsp/testTagURL" not
found
	at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:
105)
	at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:
430)
	at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:
154)
	at org.apache.jasper.compiler.TagLibraryInfoImpl.
(TagLibraryInfoImpl.java:180)
	at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:
354)
	at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:381)

My question: how my program is looking for "/test-jsp/testTagURL" and
not for "/WEB-INF/tld/testTag.tld"?

Thanks,

Zalek
Technical Details
Message-ID: <c038fd11-3290-461a-a5f7-c75973412b45@27g2000hsf.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!27g2000hsf.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f4be4,2c05585d7a7cd1b2,start
X-Google-Attributes: gidf4be4,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!27g2000hsf.googlegroups.com!not-for-mail
From: zalek <zalekbloom@hotmail.com>
Newsgroups: comp.lang.java.programmer,weblogic.developer.interest.jsp,borland.public.jbuilder.servlets-jsp
Subject: Newbie - problem with JSP tag libraries
Date: Tue, 15 Jul 2008 16:39:13 -0700 (PDT)
Organization: http://groups.google.com
Lines: 48
Message-ID: <c038fd11-3290-461a-a5f7-c75973412b45@27g2000hsf.googlegroups.com>
NNTP-Posting-Host: 64.131.221.61
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1216165154 26808 127.0.0.1 (15 Jul 2008 23:39:14 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 15 Jul 2008 23:39:14 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: 27g2000hsf.googlegroups.com; posting-host=64.131.221.61; 
 posting-account=5f_t8QoAAAAHROTCVItSGRlwRwFTIvKy
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.15) 
 Gecko/20080623 Firefox/2.0.0.15,gzip(gfe),gzip(gfe)