tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alex chang <>
Subject tag not working
Date Tue, 26 Jun 2001 19:46:57 GMT
I've been following a tutorial:

My problem begins with the section "Adding Tag Libraries".
I'm using Tomcat 3.3m3 and Windows 2000.

I have the taglib.tld in the /WEB-INF/lib directory and 
the HelloTag.class in the /WEB-INF/lib/com/onjava directory.

I've modified my welcome.jsp to include 
<%@ taglib uri="/onjava" prefix="onjava" %>
at the top and use the <onjava:hello /> tag
further down the page. When I try to bring up
this page, I get the following error:

Error: 500
Location: /onjava/welcome.jsp
Internal Servlet Error:

C:\jakarta-tomcat-3.3-m3\webapps\onjava\welcome.jsp(11,11) Unable to load
class com.onjava.HelloTag

These are only the first four lines of it. 
I've done some testing and it seems I only 
get this error when I have my <onjava:hello />
tag in there (in my welcome.jsp). That is,
if I simply have the 

<%@ taglib uri="/onjava" prefix="onjava" %>

directive at the top, and leave out the 
<onjava:hello />, The page comes up fine 
(except that it doesn't print what would've
been printed by the tag of course). Once
I put the <onjava:hello /> back in, I get
the error. 

Can anyone who has done this example or who
knows what I'm talking about help me?

Thanks in advance!

Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail

View raw message