pro_jsp thread: "External parameter entity "%(DOCTYPE);" has characters after markup"
I have just managed to compile my first custom tag but I have been having
trouble getting the wee beastie to work. I keep getting the folowing
errors return by my Tomcat Container:
org.apache.jasper.compiler.CompileException: C:\Tomcat-3.2.3
\webapps\exper\DBtester.jsp(8,0) Unable to open taglibrary library
descriptor: External parameter entity "%(DOCTYPE);" has characters after
markup.
And here is my tld file:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>GenericDBConnect</short-name>
<tag>
<name>genericDBConnect</name>
<tag-class>pro.dev.jsp.tags.dbase.genericDBConnect</tag-
class>
<attribute>
<name>dataSource</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>odbcDriver</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>
Can anyone expalin what this means. I am unsure where I am going wrong as
the first four lines of this file where taken from the examples that come
witht he tomcat server. I have also included the xml file and the Jsp file
below:
JSP FILE
----------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Generic dataBase Connection</title>
</head>
<body>
<%@taglib uri="/genericDBConnecttags.tld" prefix="database" %>
<database:genericDBConnect dataSource = "hello"
odbcDriver="sun.my.tag.lib">
this is the the begining of the end of life as we know it
</database:genericDBConnect>
</body>
</html>
WEB.XML FILE
-------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Generic dataBase Connection</title>
</head>
<body>
<%@taglib uri="/genericDBConnecttags.tld" prefix="database" %>
<database:genericDBConnect dataSource = "hello"
odbcDriver="sun.my.tag.lib">
this is the the begining of the end of life as we know it
</database:genericDBConnect>
</body>
</html>