看看这个TAGLIB的错误,是不是版本不兼容!!!TOMCAT3.2.1没问题,TOMCAT4报错

lpt 2002-01-23 05:05:51
<tag>
<name>Year</name>
<tagclass>homepage.tags.Year</tagclass>
<info>Show Year</info>
<bodycontent>EMPTY</bodycontent>
<attribute>
<name>startYear</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>yearNum</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>defaultYear</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag> // 这里报错 (line 41, col 8):

org.apache.jasper.JasperException: XML parsing error on file /WEB-INF/tags/taglibs.tld: (line 41, col 8): The content of element type "tag" must match "(name,tagclass,teiclass?,bodycontent?,info?,attribute*)".
...全文
84 点赞 收藏 6
写回复
6 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
yuking 2002-04-12
听说tomcat 4.0不支持Struts是真的吗?
回复
skyyoung 2002-01-23
TOMCAT4搞得那么复杂!!
回复
lpt 2002-01-23
我的是
<?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">

<!-- a tag library descriptor -->
<taglib>
<!-- after this the default space is
"http://java.sun.com/j2ee/dtds/jsptaglibrary_1_2.dtd"
-->
<tlibversion>1.0</tlibversion>
<jspversion>1.2</jspversion>
<shortname>taglibs</shortname>
<uri></uri>
<info>
A tag library from Servlet and JSP,
</info>
回复
weity 2002-01-23
应该这样吧!

<?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>aaa</shortname>
<info>A blank tag library template.
</info>
<!-- Forte4J_TLDX: This comment contains code generation information. Do not delete.
<tldx>
<tagHandlerGenerationRoot>D:\tomcat\webapps\onjava</tagHandlerGenerationRoot>
</tldx>
-->


</taglib>
回复
lpt 2002-01-23
在线等待
回复
lpt 2002-01-23
3ks
回复
发帖
非技术区
创建于2007-09-28

2.3w+

社区成员

Java 非技术区
申请成为版主
帖子事件
创建了帖子
2002-01-23 05:05
社区公告
暂无公告