struts.xml中提示content of element type "package" must match

简介:
 
“The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-ref?,default-action-ref?,default-class-ref?,global-results?,global-exception-mappings?,action*)". ”

struts2中这个错误的意思是,package里元素必须按照一定的顺序排列。这个顺序
就是
result-types
interceptors
default-interceptor-ref
default-action-ref
default-class-ref
global-results
global-exception-mappings
action*(就是所有的action放到最后)
 
目录
相关文章
|
XML JSON 人工智能
Error while extracting response for type [class xxx] and content type application/xml;charset=UTF-8
Error while extracting response for type [class xxx] and content type application/xml;charset=UTF-8
2104 0
|
XML 数据格式 Python
【Python】已解决:xml.parsers.expat.ExpatError: no element found: Line 1, column 0
【Python】已解决:xml.parsers.expat.ExpatError: no element found: Line 1, column 0
455 0
|
XML 数据格式
Xml declaration should precede all document content
Xml declaration should precede all document content
|
Android开发
Android Studio的怪错:AndroidManifest.xml unresolve symbol package/connot resolve symbol/Animations
Android Studio的怪错:AndroidManifest.xml unresolve symbol package/connot resolve symbol/Animations
123 0
Android Studio的怪错:AndroidManifest.xml unresolve symbol package/connot resolve symbol/Animations
|
XML Java 数据格式
xml文件报错Element ‘beans‘ cannot have character [children), because the type‘s content type is element-
xml文件报错Element ‘beans‘ cannot have character [children), because the type‘s content type is element-
xml文件报错Element ‘beans‘ cannot have character [children), because the type‘s content type is element-
|
Android开发
Android Studio的怪错:AndroidManifest.xml unresolve symbol package/connot resolve symbol/Animations
Android Studio的怪错:AndroidManifest.xml unresolve symbol package/connot resolve symbol/Animations
266 0
Android Studio的怪错:AndroidManifest.xml unresolve symbol package/connot resolve symbol/Animations
IDEA 出现问题:pom.xml提示Element connectors is not allowed here解决方案
IDEA 出现问题:pom.xml提示Element connectors is not allowed here解决方案
2131 0
|
XML Java 数据格式
Myeclipse中java web.xml报错cvc-complex-type.2.3: Element 'web-app' cannot have character [children], because the type's content type is element- only.
web.xml文件添加servlet访问限制后出现如下错误:   cvc-complex-type.2.3: Element 'web-app' cannot have character [children], because the type's content type is element- only. 翻译:   cvc-complex-type.2.3:元素'web-app'不能包含character [children],因为该类型的内容类型是仅包含元素的。
3984 0
|
Android开发 数据格式 XML
Android自动化编译设置AndroidManifest.xml中package值(包名)
手动修改Android的AndroidManifest.xml中package值(包名)很简单,手动修改即可。但是项目中需要把Android的项目源代码放到服务器端在客户下载时候动态编译生成,且生成的app签名相同但包名不同(若此时包名相同就是相同的app),这种需求需要在服务器端自动化编译Android源代码时候自动调整AndroidManifest.xml中package值才能实现。
1340 0