• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

TLD/Taglib/Tomcat Problem

 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic