tomcat 5 配置标签的问题,请大虾帮忙

04-11-23 link.com
写了一个简单的taglib,发布时tomcat 的日志中报如下的错误,在测试的jsp页中看不到taglib的效果

这是错误信息

<b>

严重: Invalid PUBLIC ID: -//Sun Microsystem, Inc.//DTD JSP Tag Library 1.1//EN

Resolve entity failed-//sun microsystem, Inc.//DTD JSP Tag Library 1.1//EN ;http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd

2004-11-23 10:14:51 org.apache.jasper.xmlparser.MyEntityResolver resolveEntity

严重: Invalid PUBLIC ID: -//sun microsystem, Inc.//DTD JSP Tag Library 1.1//EN

Resolve entity failed-//sun microsystem, Inc.//DTD JSP Tag Library 1.1//EN ;http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd

2004-11-23 10:14:53 org.apache.jasper.xmlparser.MyEntityResolver resolveEntity

严重: Invalid PUBLIC ID: -//sun microsystem, Inc.//DTD JSP Tag Library 1.1//EN

Resolve entity failed-//Sun Microsystem, Inc.//DTD JSP Tag Library 1.1//EN ;http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd

2004-11-23 10:14:54 org.apache.jasper.xmlparser.MyEntityResolver resolveEntity

严重: Invalid PUBLIC ID: -//Sun Microsystem, Inc.//DTD JSP Tag Library 1.1//EN

2004-11-23 10:17:15 org.apache.catalina.core.StandardHostDeployer install

信息: Installing web application at context path /复件 myweb from URL file:D:\Tomcat 5.0\webapps\复件 myweb

2004-11-23 10:18:26 org.apache.coyote.http11.Http11Protocol pause

信息: Pausing Coyote HTTP/1.1 on http-8080

</b>

这是我的tld配置文件

<code>

<?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">

<taglib>

<tlib-version>1.0</tlib-version>

<jsp-version>1.2</jsp-version>

<short-name>TagDemo</short-name>

<info>a tag demo</info>

<tag>

<name>tagdemo</name>

<tag-class>com.link.JspTagLib.TagDemo</tag-class>

<info>a tag demo</info>

</tag>

</taglib>

</code>

link.com
2004-11-23 11:00
link.comov36r4dA63.tld

论坛代码显示不了,把tld文件直接上传

猜你喜欢