JSP自定义标记问题
zwf88 2004-11-21 11:57:42 我在做自定义标记时,发生错误!
tomcat显示:
org.apache.jasper.JasperException: XML parsing error on file /WEB-INF/tld/aboutjsp.tld
...
java.io.UTFDataFormatException: Invalid byte 2 of 2-byte UTF-8 sequence.
...
tld文件内容是
<?xml version="1.0" encoding="UTF-8" ?>
<!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>taglib</shortname>
<info>about.jsp的标记库</info>
<tag>
<name>TagDate</name>
<tagclass>aboutjsp.taglib.TagDateTag</tagclass>
<teiclass>aboutjsp.tablib.TagDateTei</teiclass>
<info>表示当前时间</info>
<attribute>
<name>kind</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
</tablib>
请问这是出了什么问题?怎么解决?