Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TLD/Taglib/Tomcat Problem

 
Zac Roberts
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Shashank Tanksali
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try replacing
<tag-class>us.wi.state.dhfs.www.updateHeaderTag</tag-class>
with
<tagclass>us.wi.state.dhfs.www.updateHeaderTag</tagclass>
Shashank
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic