`

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

阅读更多

在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.d: Invalid content was found

    在XML Schema设计中,"cvc-complex-type.2.4.d: Invalid content was found" 是一个常见的错误信息,这通常意味着在解析XML文档时,遇到了不符合定义的复杂类型的内容。这个错误通常涉及到XML Schema的约束规则,即...

    解决:dubbo找不到dubbo.xsd报错

    - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'. - schema_reference.4: Failed to read schema document '...

    springmodules-cache.xsd&springmodules-ehcache.xsd.rar

    cvc-complex-type.2.4.a: Invalid content was found starting with element 'page-encoding'. One of '{"http:// java.sun.com/xml/ns/javaee":include-prelude, ...

    spring配置文件解析失败报”cvc-elt.1: 找不到元素 &#39;&#39;beans&#39;&#39; 的声明”异常解决

    当遇到“cvc-elt.1: 找不到元素 'beans' 的声明”这种异常时,通常意味着Spring在尝试解析XML配置文件时遇到了问题。这个错误提示表明XML解析器无法找到`&lt;beans&gt;`元素的定义,这是一个基本的Spring配置文件结构元素...

    dubbo找不到dubbo.xsd报错

    - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'. - schema_reference.4: Failed to read schema document '...

    dubbo.xsd文件下载

    - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'. - schema_reference.4: Failed to read schema document 'http:// code....

    Matlab高阶谱分析(HOSA)工具箱及安装方法

    org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'area'. One of '{MathWorksID, type}' is expected. 运行hosaver: Warning: Could not find an exact ...

    解决dubbo找不到dubbo.xsd报错

    - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'. - schema_reference.4: Failed to read schema document '...

    dubbo.xsd文件资源

    - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'. - schema_reference.4: Failed to read schema document '...

    spring-mvc-3.0.xsd

    cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:resources' 报错

    dubbo.xsd 约束文件 解决标签识别报红

    - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'. - schema_reference.4: Failed to read schema document '...

    Eclipse打开时“发现了以元素’d:skin’”开头的无效内容。此处不应含有子元素的解决方法

    本文实例讲述了Android使用Eclipse 打开时“发现了以元素’d:skin’”开头的无效内容。此处不应含有子元素的解决方法。分享给大家供大家参考,具体如下: 今天打开 Eclipse 时遇到了这个提示,如图所示: ...

    使用dubbo时需要的dubbo.xsd

    使用 dubbo 时需要添加 dubbo 支持,否则会报错 。cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'.

    javascript经典例子

    function add(a, b) { return a + b; } ``` 在JavaScript中,事件处理也是经典的应用之一。当用户与网页交互(如点击按钮、提交表单等)时,可以触发预先定义的JavaScript代码执行。例如,我们可以为一个按钮添加...

    计算机视觉中心-01行人数据集(CVC-01PedestrianDataset).pdf

    计算机视觉中心-01行人数据集(CVC-01PedestrianDataset) 计算机视觉中心-01行人数据集(CVC-01PedestrianDataset)是一种用于评估行人检测算法的数据库,该数据库记录了巴塞罗那周围的行人数据,并由CVC ADAS小组...

    CVC-T Endoscene 息肉数据集

    CVC-T 数据集是一个更广泛的数据集的测试集,称为 Endoscene。CVC-T 由从 36 名患者获得的 44 个视频序列中获得的 60 张图像组成。 一度找不到这个单独的数据集,但其实是包含在一整个医学分割网络的训练策略里的,...

    auto-tag-images-android:拍摄时在 Android 上自动标记图像,然后搜索

    自动标记图像-android HackNY 2014 秋季参赛作品 使用 Clarifai 的预览 API 在 Android 手机上自动标记图像(您需要被邀请构建/运行——项目中的密钥不起作用)。 通过屏幕内的元素设置场景模式的非常粗糙的相机...

    最完整的CVC-ClinicDB数据集

    CVC-ClinicDB 是MICCAI 2015 结肠镜视频自动息肉检测子挑战赛训练阶段的官方数据集。该数据库由从结肠镜检查视频中提取的612张静态图像组成,这些图像来自29个不同的序列。每张帧图像都附带有一个真值(ground truth...

Global site tag (gtag.js) - Google Analytics