help!taglib的问题
//test-taglib.tld
<?xml version="1.0" encoding="ISO-8859-1" ?>
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>test</shortname>
<info>no info</info>
<tag>
<name>switch</name>
<tagclass>tld.SwitchTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<info>switch</info>
</tag>
<tag>
<name>case</name>
<tagclass>tld.CaseTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>default</name>
<tagclass>tld.Default</tagclass>
<bodycontent>JSP</bodycontent>
</tag>
</taglib>
//test.jsp
<%@ page session="false" %>
<%@ taglib prefix="test" uri="/WEB-INF/jsp/test-taglib.tld"%>
<%
String value="a";
if(request.getParameter("value")!=null){
value=request.getParameter("value");
}
%>
<test:switch value=<%=value%>>
<test:case value="a">a</text:case>
<test:case value="b">b</text:case>
<test:case value="c">c</text:case>
<test:defaule>others</text:default>
</text:switch>
结果运行test.jsp
显示:Warning: validation was turned on but an org.xml.sax.ErrorHandler was not
set, which is probably not what is desired. Parser will use a default
ErrorHandler to print the first 10 errors. Please call
the 'setErrorHandler' method to fix this.
Error: URI=null Line=2: 组件类型“taglib”未被声明。
Error: URI=null Line=3: 组件类型“tlibversion”未被声明。
Error: URI=null Line=4: 组件类型“jspversion”未被声明。
Error: URI=null Line=5: 组件类型“shortname”未被声明。
Error: URI=null Line=6: 组件类型“info”未被声明。
Error: URI=null Line=7: 组件类型“tag”未被声明。
Error: URI=null Line=8: 组件类型“name”未被声明。
Error: URI=null Line=9: 组件类型“tagclass”未被声明。
Error: URI=null Line=10: 组件类型“bodycontent”未被声明。
Error: URI=null Line=11: 组件类型“attribute”未被声明。]
请高手帮忙!!!