aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes TLD/Taglib/Tomcat Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "TLD/Taglib/Tomcat Problem" Watch "TLD/Taglib/Tomcat Problem" New topic
Author

TLD/Taglib/Tomcat Problem

Zac Roberts
Ranch Hand

Joined: Jan 29, 2002
Posts: 82
I am trying to create a simply tag library and I am having problems... the tomcat error I am getting is as follows:
apache.jasper.JasperException: XML parsing error on file /WEB-INF/updates.tld: (line 12, col 14): Element type "tag-class" must be declared.
Here is my TLD file:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tag>
<name>updateHeader</name>
<tag-class>us.wi.state.dhfs.www.updateHeaderTag</tag-class>
<attribute>
<name>number</name>
</attribute>
</tag>
</taglib>
What could be the problem?
Thanks for any help...
Zac


Zac Roberts<br />SCJP2
Shashank Tanksali
Ranch Hand

Joined: Feb 21, 2001
Posts: 122
Try replacing
<tag-class>us.wi.state.dhfs.www.updateHeaderTag</tag-class>
with
<tagclass>us.wi.state.dhfs.www.updateHeaderTag</tagclass>
Shashank


<b><br /><a href="http://mailto:tanksali@hotmail.com" target="_blank" rel="nofollow">Shashank Tanksali</a><br /><i><br />SCJP2,SCJD2,SCWCD<br />IBM Certified Developer - XML and Related Technologies<br />PMI Certified Project Management Professional<br /></i><br /></b>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: TLD/Taglib/Tomcat Problem