您的位置:首页 > 编程语言 > Java开发

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

2011-12-20 22:24 507 查看
“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放到最后)


原帖地址:http://christy-fang.iteye.com/blog/745744
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐