HI, I am writing a tag library as follows
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems,Inc.//DTD
JSP Tag Library 1.1//EN"
"http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<!-- tag library descriptor-->
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>projsp</short-name>
<uri>
http://jakarta.apache.org/tomcat/debug-taglib</uri>
<info> a simple tag library </info>
<!--simple tags-->
<tag>
<name>pageVisit</name>
<tag-class>myservlets.two.PageVisitTag</tag-class>
<body-content>empty</body-content>
<info>last time you have visisted this page</info>
</tag>
</taglib>
When I run the JSP which uses this taglib it gives the following error:-
org.apache.jasper.JasperException: XML parsing error on file /WEB-INF/jsp/projsp-taglib.tld: (line 12, col 7): Element type "info" must be declared.
at org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:140)......
I have checked all the syntaxes & dont find any error.Can anyone help me in this???