• 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

parsing error on startup

 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have put my multilink.tld and links.xml file in the web-inf folder of tomcat 4.0.1 In the last line of my web.xml i have put the following code:
<taglib>
<taglib-uri>/WEB-INF/multilink.tld</taglib-uri>
<taglib-location>
/WEB-INF/multilink.tld
</taglib-location>
</taglib>
on starting the server,
it shows the following error:
element type tag must be declared
the codes are as follows:-
multilink.tld
<?xml version="1.0" encoding="UTF-8"?>
<tag>
<name>multi</name>
<tagclass>util.tags.MultiLinkTag</tagclass>
<bodycontent>tagdependent</bodycontent>
<attribute>
<name>id</name>
<required>true</required>
</attribute>
<attribute>
<name>href</name>
<required>true</required>
</attribute>
<attribute>
<name>text</name>
<required>true</required>
</attribute>
<attribute>
<name>metalinks</name>
<required>true</required>
</attribute>
<attribute>
<name>onmouseover</name>
<required>false</required>
</attribute>
</tag>
links.xml
<?xml version="1.0" encoding="UTF-8"?>
<Hrefs>
<Section name="hsct">
<Href url="http://oea.larc.nasa.gov/PAIS/HSR-General.html"
text="Overview of NASA's HSCT program"/>
<Href url="http://www.beyond2000.com/news/Aug_00/story_739.html"
text="HSCT project objectives and motivation"/>
<Href url="http://vesuvius.jsc.nasa.gov/er/seh/pg34s95.html"
text="NASA's High Speed Research Page"/>
<Href url="http://www.amitgoel.com/vizcraft/index.html"
text="HSCT visualization"/>
<Href url="http://www.aerospace.nasa.gov/goals/fsvtp.htm"
text="Affordable supersonic travel"/>
<Href url="http://www.aerospace.nasa.gov/goals/images/g6icon1.jpg"
text="What does it look like?"/>
</Section>
<Section name="xvs">
<Href url="http://oea.larc.nasa.gov/PAIS/HSR-Cockpit.html"
text="The external visibility system concept"/>
<Href url="http://www.aerospace.nasa.gov/library/ar99/obj6.html#6-5"
text="Cockpit with an artificial view"/>
<Href url="http://lisar.larc.nasa.gov/IMAGES/SMALL/EL-1998-00169.jpeg"
text="What does it look like?"/>
</Section>
</Hrefs>
 
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are missing the Document type definition in the TLD. The element names you are using are JSP 1.1 so you need:
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
immediately after the
<?xml version="1.0" encoding="ISO-8859-1" ?>
 
reply
    Bookmark Topic Watch Topic
  • New Topic