Hi,
Which version of tomcat & taglib are you using?
If you are using tomcat 4.0, try using the following (took it from the
example-taglib.tld):
<?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/dtd/web-jsptaglibrary_1_2.dtd">
When we use taglib1.2, we need to change the tags <tagclass>, <bodycontent>
to <tag-class>, <body-content>... (check the example tld for more...)
Regards,
Dayanand.
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of [David Parry]
Sent: Tuesday, July 16, 2002 4:56 AM
To: [EMAIL PROTECTED]
Subject: Problem with jakarta struts .tld files
I have written an app.tld file as follows:
<?xml version="1.0" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>User</shortname>
<info>This tag library contains employee tag extensions</info>
<tag>
<name>departmentList</name>
<tagclass>com.example.DepartmentTag</tagclass>
<bodycontent>empty</bodycontent>
</tag>
<tag>
<name>skillsList</name>
<tagclass>com.example.SkillsTag</tagclass>
<bodycontent>empty</bodycontent>
</tag>
</taglib>
Whenever I try to access my application I get the following error:
org.apache.jasper.JasperException: XML parsing error on file
/WEB-INF/app.tld: Invalid PUBLIC ID: -//Sun MicroSystems, Inc.//DTD JSP Tag
Library 1.1//EN
I am not sure what I am doing wrong, but I have also noticed when ever I
start Tomcat I get:
XmlMapper: Can't find resource for entity: -//Sun MicroSystems, Inc.//DTD
JSP Tag Library 1.1//EN -->
http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd "null"
Then my PC attempts to connect to internet (ive tried starting server
already connected) I dont really know whats going wrong as the URLs do exist
as Ive pointed my browser at them
Please help.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com