<?xml version="1.0" encoding="UTF-8" ?><taglib xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
version="2.0">
<tlib-version>1.0</tlib-version> <function>
<description>Reverses the characters in the given String</description>
<name>reverse</name>
<function-class>jsp2.examples.el.Functions</function-class>
<function-signature>java.lang.String reverse( java.lang.String )</function-signature>
</function>
<function>
<description>Counts the number of vowels (a,e,i,o,u) in the given String</description>
<name>numVowels</name>
<function-class>jsp2.examples.el.Functions</function-class>
<function-signature>java.lang.Integer numVowels( java.lang.String )</function-signature>
</function>
</taglib>在第一行“<?xml”中提示:The word 'xml' is not correctly spelled在“<taglib xmlns="http://java.sun.com/xml/ns/j2ee"”中提示:The word 'xmlns' is not correctly spelled在第一个“ <function>”提示如下错误:
cvc-complex-type.2.4.a: Invalid content was found starting
with element 'function'. One of '{"http://java.sun.com/xml/
ns/j2ee":short-name}' is expected.请高手解答,先在这谢谢了
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
version="2.0">
<tlib-version>1.0</tlib-version> <function>
<description>Reverses the characters in the given String</description>
<name>reverse</name>
<function-class>jsp2.examples.el.Functions</function-class>
<function-signature>java.lang.String reverse( java.lang.String )</function-signature>
</function>
<function>
<description>Counts the number of vowels (a,e,i,o,u) in the given String</description>
<name>numVowels</name>
<function-class>jsp2.examples.el.Functions</function-class>
<function-signature>java.lang.Integer numVowels( java.lang.String )</function-signature>
</function>
</taglib>在第一行“<?xml”中提示:The word 'xml' is not correctly spelled在“<taglib xmlns="http://java.sun.com/xml/ns/j2ee"”中提示:The word 'xmlns' is not correctly spelled在第一个“ <function>”提示如下错误:
cvc-complex-type.2.4.a: Invalid content was found starting
with element 'function'. One of '{"http://java.sun.com/xml/
ns/j2ee":short-name}' is expected.请高手解答,先在这谢谢了
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货