标签问题(我没分了,就这20分了)还望指教

sunzhaoqin 2003-09-12 10:48:26
我写标签库的时候出现错误:
org.apache.jasper.JasperException: XML parsing error on file /WEB-INF/tlds/taglib.tld: (line 21, col 22): The content of element type "attribute" must match "(name,required?,rtexprvalue?,type?,description?)".

我的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/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>tagclass</short-name>
<uri></uri>
<display-name>JSTL sql</display-name>
<description>JSTL 1.0 sql library</description>
<tag>
<name>login</name>
<tag-class>tagclass.login.login</tag-class>
<body-content>JSP</body-content>
<description>Simple conditional login tag</description>
<attribute>
    <name>height</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
   </attribute>
<attribute>
    <name>width</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
   </attribute>
</tag>
</taglib>

怎么办哪??我哪里写错了??谢谢指点
...全文
41 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
sunzhaoqin 2003-09-12
  • 打赏
  • 举报
回复
UP

81,094

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧