cvc-complex-type.2.4.a: Invalid content was found starting with element 'init-param'.
来源:互联网 发布:淘宝助理菜鸟组件 编辑:程序博客网 时间:2024/05/24 06:39
在用struts1.3的时候,写web.xml用<init-param>标签的时候,始终没法识别这个标签。报一个错误
解决:<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance http://www.springmodules.org/schema/cache/springmodules-cache.xsd http://www.springmodules.org/schema/cache/springmodules-ehcache.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd
">
</web-app>
这样写,就可以了。据说要按照DTD给出的顺序严格书写,不能瞎写,不然就出错。也有人说2.4的顺序不是那么重要,给大家做个参考。
0 0
- cvc-complex-type.2.4.a: Invalid content was found starting with element 'init-param'.
- cvc-complex-type.2.4.a: Invalid content was found starting with element 'init-param'.
- vc-complex-type.2.4.a: Invalid content was found starting with element 'init-param'. One of '{"http:
- 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'”错误的解决办法
- cvc-complex-type.2.4.a: Invalid content was found starting with element
- 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'错误
- 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'错误
- 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
- cvc-complex-type.2.4.a: Invalid content was found starting with element
- “cvc-complex-type.2.4.a: Invalid content was found starting with element 'book'”错误的解决办法
- cvc-complex-type.2.4.a: Invalid content was found starting with element
- 针对报出 cvc-complex-type.2.4.a: Invalid content was found starting with element 问题解决办法
- cvc-complex-type.2.4.a: Invalid content was found starting with element 'url-pattern'
- cvc-complex-type.2.4.a: Invalid content was found starting with element 'async-supported'.
- SQLServer2008只能编辑前面200行数据
- Java freemarker demo 【struts + freemarker】 自己修改的一个小例子
- 循环左移字符串
- Linux时间子系统之三:时间的维护者:timekeeper
- Position Bias Correction for Search Behavior Analysis
- cvc-complex-type.2.4.a: Invalid content was found starting with element 'init-param'.
- handler机制原理全面整理
- C++输出有效数字位数
- Linux时间子系统之四:定时器的引擎:clock_event_device
- EL表达式
- How to Segment EBAY Mobile Buyers?
- android spinner 修改字体颜色和大小
- UVA - 12206 Stammering Aliens (hash)
- dom4j读写xml简单demo