标签问题(我没分了,就这20分了)还望指教
我写标签库的时候出现错误:
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>
怎么办哪??我哪里写错了??谢谢指点