nogod
发贴: 11
|
于 2005-02-02 08:53
<?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/j2ee/dtds/web"-jsptaglibrary_1_1.dtd"> <taglib> <tlibversion>1.0</tlibversion> <jspversion>1.1</jspversion> <shortname>tagclass</shortname> <tag> <name>login</name> <tagclass>test.login</tagclass> <info></info> <attribute> <name>height</name> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>width</name> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute>
</tag> </taglib> jsp:文件引用的: <%@ taglib uri="/WEB-INF/tlds/MyTaglib.tld" prefix="tagclass" %> <tagclass:login width="200" height="100"> </tagclass:login> 错误: XML parsing error on file /WEB-INF/tlds/MyTaglib.tld: (line 1, col -1): 缺少文件根组件。
所有的路径,引用的名称都没写错啊。可就是报这样的错,是什么原因啊,我也是刚刚开始学jsp表示符,看着有tag.还有tld,难道我的这个tld换需要个tag文件吗。。哪个高人来说说啊。拜托了。
|