1. 程式人生 > >cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'錯誤

cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'錯誤

今天在使用struts-menu製作選單,在web.xml中寫入

   <taglib>
     <taglib-uri>/WEB-INF/struts-menu.tld</taglib-uri>
     <taglib-location>/WEB-INF/struts-menu.tld</taglib-location>
   </taglib>  

後,提示“cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'”錯誤。

修改為:

  <jsp-config>
   <taglib>
     <taglib-uri>/WEB-INF/struts-menu.tld</taglib-uri>
     <taglib-location>/WEB-INF/struts-menu.tld</taglib-location>
   </taglib>  
  </jsp-config>

後解決。

----------------------------------------

<jsp-config>標籤使用詳解
<jsp-config> 包括<taglib> 和<jsp-property-group> 兩個子元素。
   
   其中<taglib>元素在JSP 1.2時就已經存在;而<jsp-property-group>是JSP 2.0 新增的元素。
     <jsp-property-group>元素主要有八個子元素,它們分別為:
   
     1.<description>:設定的說明;
     2.<display-name>:設定名稱;
     3.<url-pattern>:設定值所影響的範圍,如:/CH2 或 /*.jsp;
     4.<el-ignored>:若為true,表示不支援EL 語法;
     5.<scripting-invalid>:若為true,表示不支援<% scripting %>語法;
     6.<page-encoding>:設定JSP 網頁的編碼;
     7.<include-prelude>:設定JSP 網頁的擡頭,副檔名為.jspf;
     8.<include-coda>:設定JSP 網頁的結尾,副檔名為.jspf。

相關推薦

cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'錯誤

今天在使用struts-menu製作選單,在web.xml中寫入    <taglib>     <taglib-uri>/WEB-INF/struts-menu.tld</taglib-uri>     <taglib-locati

taglib cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'.

web.xml標籤中的taglib標籤出錯,顯示cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib' 解決辦法是:在標頭檔案的 xmlns:xsi="http://w

cvc-complex-type.2.4.a: Invalid content was found starting with element

lex -s 2.4 logs nbsp onf -type sch xsd cvc-complex-type.2.4.a: Invalid content was found starting with element ‘display-name‘. One of ‘{

web.xml 中async-supported爆紅叉叉 cvc-complex-type.2.4.a: Invalid content was found starting with element 'async-supported'.

class 表頭 start lex .org nco app lns pri 新建一個項目在web.xml中些東西是發現async-supported報紅叉 cvc-complex-type.2.4.a: Invalid content was found starti

轉:web.xml檔案報錯:cvc-complex-type.2.4.a: Invalid content was found starting with element 'init-param'.

<?xml version="1.0" encoding="UTF-8"?> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns

cvc-complex-type.2.4.a: Invalid content was found starting with element 'async-supported'. One of '{"http://java.sun.com/xml/ns/javae

第一種方案:  將  "http://java.sun.com/xml/ns/javaee"  換為  "http://java.sun.com/xml/ns/j2ee"          

cvc-complex-type.2.4.a: Invalid content was found starting with element 'servlet-pattern'. One of

報錯提示是:cvc-complex-type.2.4.a: Invalid content was found starting with element 'servlet-pattern'. One of   '{"http://java.sun.com/xml/ns/java

cvc-complex-type.2.4.a: Invalid content was found starting with element 'executable'.

maven工程中的pom.xml報錯: cvc-complex-type.2.4.a: Invalid content was found starting with element 'executable'. One of '{"http://maven.apache.org/POM/4.0.

在eclipse中web.xml報錯:cvc-complex-type.2.4.a: Invalid content was found starting with element 'async-su

在eclipse中web.xml報錯:cvc-complex-type.2.4.a: Invalid content was found starting with element ‘async-supported’ 在配置web.xml的時候出現cvc-com

cvc-complex-type.2.4.a: Invalid content was found starting with element 'attribute'. One of '{"http:

tld檔案中<attribute></attribute>標籤提示如下: cvc-complex-type.2.4.a: Invalid content was found starting with element 'query'. One of

針對報出 cvc-complex-type.2.4.a: Invalid content was found starting with element 問題解決辦法

            今天正在整java專案時突然在web.xml報出cvc-complex-type.2.4.a: Invalid content was found starting with

關於配置攔截器報錯:cvc-complex-type.2.4.a: Invalid content was found starting with element

解決辦法為:將“http://www.springmodules.org/schema/cache/springmodules-cache.xsd http://www.springmodules.org/schema/cache/springmodules-ehcache.

cvc-complex-type.2.4.a: Invalid content was found starting with element 'url-pattern'

以前用myeclipse嫌validate太煩了就都去掉了,把專案匯入到Eclipse中,發現回報各種validate錯誤,如題在web.xml檔案報錯,以前沒發現,從字面意思理解就是‘url-pattern’ 元素在2.4的版本里無效換成2.5試試,注意下面程式碼紅色部分

cvc-complex-type.2.4.d: invalid content was found starting with element

web.xml裡面一直畫紅,是因為以前寫成 <filter> <filter-name>hibernateFilter</filter-name> <

Invalid content was found starting with element No child ele

分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow 也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!        

spring Invalid content was found starting with element 'init- param'

初學spring,配置web.xml,發現報個錯,莫名其妙的。 錯誤資訊如下 自己幹看是不知道咋回事。 後來上網百度,發現是程式碼順序錯誤,load-on-startup應該放到init-param下面,額。 so,改動下,沒事了。

Type cvc-complex-type.2.4.c: The matching wildcard is strict...

nco odin context blog ring color 報錯 log 記錄 這個問題困擾了我兩次,分別說一下原因:1. 如網上一些網友所言,是在配置Spring的標簽庫的時候有拼寫錯誤或者遺漏。下面貼一個標準3.0的吧: 1 <?xml version=

[bug]cxf: cvc-complex-type.2.4.c: 通配符的匹配很全面, 但無法找到元素 ' 'jaxws:server' 的聲明,問題處理

alt 運行 提示頁面 題解 src 配置信息 圖片 image 原因 問題原因: 未知,因個人環境不同,無法保證都適用 問題解決方法: 將cxf在spring的配置信息調整到最前方 原配置信息頭: 運行時錯誤提示: 調

《Spring實戰》-- 'cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element' 錯誤的解決

tip c-c 面向切面 ng- join proc ima -a edi 在Eclipse中新建了一個maven項目學習Spring,在 service.xml 中配置 Spring,想要學習‘面向切面的Spring’,service.xml 內容如下: <bean

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration解決方法

搭建dubbo服務時提示無法下載dubbo.xsd檔案,可能因為xml引用的網站地址找不當前使用dubbo版本。 具體錯誤: Multiple annotations found at this line: - cvc-complex-type.2.4.c: The mat