天天看點

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放到最後)

原帖位址:http://christy-fang.iteye.com/blog/745744