2012年3月15日

“The content of element type "package" must match "(result-types?,interceptors?, strus2元素顺序

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

posted @ 2012-03-15 17:46 god8816 阅读(27) 评论(0) 编辑